-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Newline after "buildx build" would cause issue where command would exit with an error code, but no error message.
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 }} |