Skip to content

Commit

Permalink
chore(ci): use registry cache exproter
Browse files Browse the repository at this point in the history
  • Loading branch information
ijo42 committed Jun 7, 2022
1 parent e069d18 commit 8db0323
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/autobuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
tags: ${{ env.DOCKER_IMAGE }}
push: true
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max

- name: Build and push arm64
uses: docker/build-push-action@v3
Expand All @@ -41,5 +41,5 @@ jobs:
tags: ${{ env.DOCKER_IMAGE }}:latest-arm64
push: true
platforms: linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64,mode=max
8 changes: 4 additions & 4 deletions .github/workflows/manualbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
build-args: |
"LAUNCHER_VERSION=${{ github.event.inputs.launcher_ref }}"
"RUNTIME_VERSION=${{ github.event.inputs.runtime_ref }}"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max

- name: Build and push arm64
uses: docker/build-push-action@v3
Expand All @@ -55,6 +55,6 @@ jobs:
build-args: |
"LAUNCHER_VERSION=${{ github.event.inputs.launcher_ref }}"
"RUNTIME_VERSION=${{ github.event.inputs.runtime_ref }}"
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64,mode=max

0 comments on commit 8db0323

Please sign in to comment.