chore: github build cache
This commit is contained in:
10
.github/workflows/publish-docker.yml
vendored
10
.github/workflows/publish-docker.yml
vendored
@@ -29,10 +29,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile.base
|
file: Dockerfile.base
|
||||||
push: false
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
yuuza/outline:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
yuuza/outline-base:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
||||||
|
cache-from: type=registry,ref=yuuza/outline-base:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
||||||
|
cache-to: type=inline
|
||||||
|
- run: docker tag yuuza/outline-base:${{ github.ref_name == 'main' && 'latest' || github.ref_name }} outlinewiki/outline-base:latest
|
||||||
- name: Build runner image
|
- name: Build runner image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -40,3 +42,5 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
yuuza/outline:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
yuuza/outline:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
||||||
|
cache-from: type=registry,ref=yuuza/outline:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
|
||||||
|
cache-to: type=inline
|
||||||
|
|||||||
Reference in New Issue
Block a user