diff --git a/.github/actions/docker-build-and-test/action.yml b/.github/actions/docker-build-and-test/action.yml index e0d68287f3..7fc938c6b8 100644 --- a/.github/actions/docker-build-and-test/action.yml +++ b/.github/actions/docker-build-and-test/action.yml @@ -34,6 +34,10 @@ inputs: description: "Whether to push the built image" required: false default: "false" + use-as-latest: + description: "Publish as latest" + required: false + default: "false" runs: using: "composite" @@ -61,7 +65,7 @@ runs: docker.io/calcom/cal.com ghcr.io/calcom/cal.com flavor: | - latest=${{ !github.event.release.prerelease }} + latest=${{ !github.event.release.prerelease && inputs.use-as-latest == 'true' }} suffix=${{ inputs.platform-suffix }} - name: Copy env diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml index b9b9bb5b99..d695355d5c 100644 --- a/.github/workflows/release-docker.yaml +++ b/.github/workflows/release-docker.yaml @@ -40,6 +40,7 @@ jobs: postgres-db: ${{ env.POSTGRES_DB }} database-host: ${{ env.DATABASE_HOST }} push-image: "true" + use-as-latest: "true" - name: Notify Slack on Success if: success()