From b5e4aaae3335eb9896d18593918bc7ba32147cdb Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Fri, 6 Dec 2024 11:26:41 +0100 Subject: [PATCH] fix: manual push Signed-off-by: Martin Buchleitner --- .github/workflows/container.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index f21e4a2..881045c 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -162,15 +162,11 @@ jobs: password: ${{ secrets.BOT_ACCESS_TOKEN }} - name: Publish container - if: needs.pre-commit.outputs.version != '' - uses: docker/build-push-action@v5 - with: - context: ${{ steps.get_dir.outputs.docker_directory }} - file: ${{ inputs.dockerfile }} - push: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }} - tags: ${{ steps.prep.outputs.tags }} - platforms: ${{ inputs.platforms }} - build-args: ${{ inputs.build_args }} + if: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }} + run: | + for img in $(echo "${{ fromJson(steps.meta.outputs.json).tags }}"" | jq -r '.tags[]' ); do + docker push $img + done release: needs: [ pre-commit, build ]