Skip to content

Commit

Permalink
use of type=gha
Browse files Browse the repository at this point in the history
  • Loading branch information
shyouhei committed Sep 29, 2022
1 parent 792d9d0 commit b93350c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ jobs:
name: Publish ${{ matrix.entry.tag }}
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
Expand All @@ -70,15 +64,9 @@ jobs:
version=${{ matrix.entry.os }}
baseruby=${{ matrix.entry.baseruby }}
packages=${{ matrix.entry.tag }} ${{ matrix.entry.extras }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
cache-from: type=gha
cache-to: type=gha
platforms: ${{ matrix.entry.platforms || 'linux/amd64,linux/arm64' }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.repository }}:${{ matrix.entry.tag }}
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 comments on commit b93350c

Please sign in to comment.