Skip to content

Commit

Permalink
Merge pull request #22 from infralovers/refactor-container-build
Browse files Browse the repository at this point in the history
fix: manual push
  • Loading branch information
mabunixda authored Dec 6, 2024
2 parents aa0cd03 + b5e4aaa commit ff5f2cc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit ff5f2cc

Please sign in to comment.