Skip to content

Commit

Permalink
Update build_docker.yml (aurora-develop#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhou26 authored Apr 4, 2024
1 parent d5e0d45 commit cd9bdaf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push to GHCR
uses: docker/build-push-action@v2
Expand All @@ -42,6 +44,8 @@ jobs:
platforms: linux/amd64,linux/arm64
file: Dockerfile
push: true
tags: ${{ env.GHCR_REPO }}:latest
tags: |
${{ env.GHCR_REPO }}:latest
${{ env.GHCR_REPO }}:${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max

0 comments on commit cd9bdaf

Please sign in to comment.