Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons committed Aug 18, 2024
1 parent 3a8f74f commit 930e685
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ jobs:
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: docker/buildx-cache-action@v2
uses: docker/setup-buildx-action@v3
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
version: 'latest'
platforms: 'linux/amd64,linux/arm64'
driver-opts: 'image=moby/buildkit:master'
buildkitd-flags: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'

- name: Login to DockerHub
uses: docker/login-action@v2
Expand All @@ -71,8 +70,6 @@ jobs:
- name: Build and push
run: |
docker buildx build --platform linux/amd64,linux/arm64 \
--cache-from type=local,src=/tmp/.buildx-cache \
--cache-to type=local,dest=/tmp/.buildx-cache \
--push \
--tag ${{ steps.prep.outputs.tags }} \
.

0 comments on commit 930e685

Please sign in to comment.