diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index b82633eee..0c547495c 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -18,7 +18,6 @@ jobs: build: permissions: contents: read - deployments: write id-token: write runs-on: ubuntu-24.04 env: @@ -64,8 +63,6 @@ jobs: if: github.ref == 'refs/heads/main' run: | echo IMAGE_TAG=latest >> "$GITHUB_ENV" - # Updates to the main branch are deployed to stage. - echo DEPLOYMENT_ENV=stage >> "$GITHUB_ENV" - name: Set Docker image tag to "test" for updates of the build-test-image branch if: github.ref == 'refs/heads/build-test-image' run: | @@ -76,8 +73,6 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | echo IMAGE_TAG="$GITHUB_REF_NAME" >> "$GITHUB_ENV" - # Version tags are deployed to prod. - echo DEPLOYMENT_ENV=prod >> "$GITHUB_ENV" - name: Push the Docker image to GAR if: env.IMAGE_TAG != '' uses: mozilla-it/deploy-actions/docker-push@v3.13.0 @@ -87,4 +82,3 @@ jobs: image_tag: ${{ env.IMAGE_TAG }} workload_identity_pool_project_number: ${{ secrets.WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }} project_id: ${{ secrets.GCP_PROJECT_ID }} - deployment_env: ${{ env.DEPLOYMENT_ENV }}