Skip to content

Commit

Permalink
conf: Updated buildx commands.
Browse files Browse the repository at this point in the history
Newline after "buildx build" would cause issue where command would exit
with an error code, but no error message.
  • Loading branch information
MrFlynn committed Dec 28, 2020
1 parent 045d85f commit 5506733
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ jobs:
uses: crazy-max/[email protected]
- name: Build image
run: |
docker buildx build \
--cache-to "type=local,dest=/tmp/buildx-cache" \
docker buildx build --cache-to "type=local,dest=/tmp/buildx-cache" \
--output "type=image,push=false" \
${{ steps.setup.outputs.build_args }}
- name: Login to hub.docker.com
Expand All @@ -71,8 +70,7 @@ jobs:
password: ${{ secrets.DOCKER_REGISTRY_KEY }}
- name: Push to hub.docker.com
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/buildx-cache" \
docker buildx build --cache-from "type=local,src=/tmp/buildx-cache" \
--tag ${IMAGE_NAME}:${{ steps.setup.outputs.version }} --tag ${IMAGE_NAME}:latest \
--push \
${{ steps.setup.outputs.build_args }}
Expand All @@ -84,9 +82,8 @@ jobs:
password: ${{ secrets.CR_PAT }}
- name: Push to ghcr.io
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/buildx-cache" \
--tag ghcr.io/mrflynn/${IMAGE_NAME}:${{ steps.setup.outputs.version }} \
--tag ghcr.io/mrflynn/${IMAGE_NAME}:latest \
docker buildx build --cache-from "type=local,src=/tmp/buildx-cache" \
--tag ghcr.io/${IMAGE_NAME}:${{ steps.setup.outputs.version }} \
--tag ghcr.io/${IMAGE_NAME}:latest \
--push \
${{ steps.setup.outputs.build_args }}

0 comments on commit 5506733

Please sign in to comment.