Skip to content

Commit

Permalink
BC-5101 - go back to docker/build-push-action@v4 (#4)
Browse files Browse the repository at this point in the history
* BC-5101 - go back to docker/build-push-action@v4 for push workflow

Remove lines who produce the malformed docker.config

* BC-5101 - go back to docker/build-push-action@v4 for tag action
  • Loading branch information
mamutmk5 authored Sep 11, 2023
1 parent dee3e90 commit 99a92f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:

- name: test image exists
run: |
mkdir -p ~/.docker
echo '{"experimental": "enabled"}' >> ~/.docker/config.json
echo "IMAGE_EXISTS=$(docker manifest inspect ghcr.io/${{ github.repository }}:${{ github.sha }} > /dev/null && echo 1 || echo 0)" >> $GITHUB_ENV
- name: Set up Docker Buildx
Expand All @@ -44,7 +42,7 @@ jobs:

- name: Build and push ${{ github.repository }}
if: ${{ env.IMAGE_EXISTS == 0 }}
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
password: ${{ secrets.QUAY_TOKEN }}

- name: Build and push ${{ github.repository }}
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 99a92f6

Please sign in to comment.