Skip to content

Commit

Permalink
go back to default inline cache
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Aug 25, 2023
1 parent e7b7af9 commit 2318be7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
tags:
- '*'

env:
REGISTRY_IMAGE: ghcr.io/kube-rs/version-rs

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -36,7 +33,7 @@ jobs:
uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/kube-rs/version-rs
images: ghcr.io/${{ github.repository }}
tags: |
type=pep440,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
Expand All @@ -55,8 +52,10 @@ jobs:
with:
context: .
# official experimental: https://docs.docker.com/build/ci/github-actions/cache/#github-cache
cache-from: type=gha,scope=version6
cache-to: type=gha,scope=version6,mode=max
#cache-from: type=gha
#cache-to: type=gha,mode=max
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:latest
cache-to: type=inline
#push: ${{ github.ref == 'refs/heads/main' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 2318be7

Please sign in to comment.