diff --git a/.github/workflows/build-server-image.yml b/.github/workflows/build-server-image.yml index 8a0fdcd6d8d..0293651cfc7 100644 --- a/.github/workflows/build-server-image.yml +++ b/.github/workflows/build-server-image.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - release-* paths: - server/build/Dockerfile.buildenv - server/build/Dockerfile.buildenv-fips @@ -57,7 +58,7 @@ jobs: echo "GO_VERSION=${GO_VERSION}" >> "${GITHUB_OUTPUT}" - name: buildenv/push - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0 with: provenance: false @@ -103,7 +104,7 @@ jobs: echo "GO_VERSION=${GO_VERSION}" >> "${GITHUB_OUTPUT}" - name: buildenv/push - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0 with: provenance: false