From 5cb726f793678f0c2b4de3556548c1fe5b329336 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Mon, 30 Dec 2024 17:38:27 +0100 Subject: [PATCH] ci(docker): always push image (#1812) --- .github/workflows/deployment-docker-image.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deployment-docker-image.yml b/.github/workflows/deployment-docker-image.yml index b2860a9df..74772e8ef 100644 --- a/.github/workflows/deployment-docker-image.yml +++ b/.github/workflows/deployment-docker-image.yml @@ -13,11 +13,6 @@ on: required: false default: true description: Send notifications - push-image: - type: boolean - required: false - default: true - description: Push Docker Image permissions: contents: write @@ -112,7 +107,6 @@ jobs: NEXT_VERSION: ${{ needs.release.outputs.version }} DEPLOY_LATEST: ${{ github.ref_name == 'main' }} DEPLOY_BETA: ${{ github.ref_name == 'beta' }} - PUSH_IMAGE: ${{ github.event_name != 'workflow_dispatch' || github.events.inputs.push-image == true }} steps: - uses: actions/checkout@v4 with: @@ -143,13 +137,13 @@ jobs: ${{ env.DEPLOY_LATEST == 'true' && 'type=raw,value=latest' || null }} ${{ env.DEPLOY_BETA == 'true' && 'type=raw,value=beta' || null }} type=raw,value=${{ env.NEXT_VERSION }} - - name: Build and maybe push + - name: Build and push id: buildPushAction uses: docker/build-push-action@v6 with: platforms: linux/amd64,linux/arm64 context: . - push: ${{ env.PUSH_IMAGE }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} network: host @@ -160,4 +154,4 @@ jobs: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} uses: Ilshidur/action-discord@master with: - args: "Deployment of image has completed for branch ${{ github.ref_name }}. Image ID is '${{ steps.buildPushAction.outputs.imageid }}'. ${{ env.PUSH_IMAGE == 'true' && '' || 'This was a dry run' }}" + args: "Deployment of image has completed for branch ${{ github.ref_name }}. Image ID is '${{ steps.buildPushAction.outputs.imageid }}'."