Skip to content

Commit 8f003a0

Browse files
committed
cache builds
1 parent f389a68 commit 8f003a0

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/docker-legacy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ jobs:
1717
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
1818
-
1919
name: Build and push Docker image
20-
run: docker buildx build --platform linux/arm -t nico640/docker-unms:armhf -f Dockerfile --push .
20+
run: |
21+
docker buildx build \
22+
--platform linux/arm \
23+
-t nico640/docker-unms:armhf -f Dockerfile \
24+
--push --cache-from type=local,src=/tmp/buildx-cache \
25+
--cache-to type=local,dest=/tmp/buildx-cache .

.github/workflows/docker-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ jobs:
1616
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
1717
-
1818
name: Build and push Docker image
19-
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nico640/docker-unms:latest -f Dockerfile --push .
19+
run: |
20+
docker buildx build \
21+
--platform linux/amd64,linux/arm64,linux/arm/v7 \
22+
-t nico640/docker-unms:latest -f Dockerfile \
23+
--push --cache-from type=local,src=/tmp/buildx-cache \
24+
--cache-to type=local,dest=/tmp/buildx-cache .

.github/workflows/docker-tag.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ jobs:
2020
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
2121
-
2222
name: Build and push Docker image
23-
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nico640/docker-unms:$RELEASE_VERSION -f Dockerfile --push .
23+
run: |
24+
docker buildx build \
25+
--platform linux/amd64,linux/arm64,linux/arm/v7 \
26+
-t nico640/docker-unms:$RELEASE_VERSION -f Dockerfile \
27+
--push --cache-from type=local,src=/tmp/buildx-cache \
28+
--cache-to type=local,dest=/tmp/buildx-cache .

0 commit comments

Comments
 (0)