diff --git a/.github/workflows/docker-server.yml b/.github/workflows/docker-server.yml index 2a85ac04..3325fc8d 100644 --- a/.github/workflows/docker-server.yml +++ b/.github/workflows/docker-server.yml @@ -51,6 +51,12 @@ jobs: uses: docker/metadata-action@v5 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=schedule + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha - name: Get the commit hash run: echo "GIT_COMMIT=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV diff --git a/.github/workflows/docker-worker.yml b/.github/workflows/docker-worker.yml index 1fef4da6..36ee466a 100644 --- a/.github/workflows/docker-worker.yml +++ b/.github/workflows/docker-worker.yml @@ -51,6 +51,12 @@ jobs: uses: docker/metadata-action@v5 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=schedule + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha - name: Get the commit hash run: echo "GIT_COMMIT=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV