Skip to content

Commit

Permalink
cache builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico640 committed May 21, 2020
1 parent f389a68 commit 8f003a0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/docker-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ jobs:
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
-
name: Build and push Docker image
run: docker buildx build --platform linux/arm -t nico640/docker-unms:armhf -f Dockerfile --push .
run: |
docker buildx build \
--platform linux/arm \
-t nico640/docker-unms:armhf -f Dockerfile \
--push --cache-from type=local,src=/tmp/buildx-cache \
--cache-to type=local,dest=/tmp/buildx-cache .
7 changes: 6 additions & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ jobs:
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
-
name: Build and push Docker image
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nico640/docker-unms:latest -f Dockerfile --push .
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t nico640/docker-unms:latest -f Dockerfile \
--push --cache-from type=local,src=/tmp/buildx-cache \
--cache-to type=local,dest=/tmp/buildx-cache .
7 changes: 6 additions & 1 deletion .github/workflows/docker-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ jobs:
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
-
name: Build and push Docker image
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nico640/docker-unms:$RELEASE_VERSION -f Dockerfile --push .
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t nico640/docker-unms:$RELEASE_VERSION -f Dockerfile \
--push --cache-from type=local,src=/tmp/buildx-cache \
--cache-to type=local,dest=/tmp/buildx-cache .

0 comments on commit 8f003a0

Please sign in to comment.