Skip to content

Commit

Permalink
Merge pull request #1040 from kapicorp/dependabot/github_actions/dock…
Browse files Browse the repository at this point in the history
…er/build-push-action-4

Bump docker/build-push-action from 2 to 4
  • Loading branch information
ademariag authored Sep 10, 2023
2 parents a483335 + c9a9443 commit 12cfdde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:

- name: Build PR/versioned tags
if: github.ref != 'refs/heads/master'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: kapicorp/kapitan:${{ format('{0}', env.REF_NAME ) }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} # push image only on non-pull_requests
file: Dockerfile
# TODO push and tag as latest if release (and not RC)
- name: Build latest tag
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: github.ref == 'refs/heads/master'
with:
tags: kapicorp/kapitan:${{ format('{0}', env.REF_NAME ) }},kapicorp/kapitan:latest
Expand All @@ -68,7 +68,7 @@ jobs:
[ ${{ env.REF_NAME }} == "master" ] && tagname="latest" || tagname=${{ env.REF_NAME }}
docker run -t --rm kapicorp/kapitan:${tagname} --version
- name: Build major version tag
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
tags: kapicorp/kapitan:${{ format('{0}', env.MAJOR_VERSION ) }}
Expand Down

0 comments on commit 12cfdde

Please sign in to comment.