forked from LiamAEdwards/SS14-Docker-Linux-Server
CI: cache build artifacts and configs
Some checks failed
Build and publish wylab SS14 server / build-and-push-image (push) Has been cancelled
Some checks failed
Build and publish wylab SS14 server / build-and-push-image (push) Has been cancelled
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -16,10 +16,12 @@ env:
|
||||
TARGET_PLATFORM: linux-x64
|
||||
WYLAB_SOURCE_REPO: https://git.wylab.me/wylab/wylab-station-14.git
|
||||
WYLAB_SOURCE_REF: master
|
||||
BUILD_CACHE_SCOPE: ws14-docker-linux-server
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 240
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@@ -65,6 +67,10 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
cache-from: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }}
|
||||
cache-to: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }},mode=max,compression=zstd
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
|
||||
Reference in New Issue
Block a user