chore: ci

This commit is contained in:
DarkSky 2022-08-11 23:25:09 +08:00
parent 8d6ded2fcc
commit e4533e6601
2 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,6 @@
FROM relocate as relocate
ARG BASE_IMAGE=localhost:5000/toeverything/relocate:latest
FROM ${BASE_IMAGE} as relocate
# =============
# AFFiNE image

View File

@ -19,6 +19,7 @@ env:
NAMESPACE: toeverything
AFFINE_IMAGE_NAME: AFFiNE
IMAGE_TAG_LATEST: nightly-latest
LOCAL_CACHE: localhost:5000/toeverything/relocate:latest
jobs:
ligo-virgo:
@ -28,6 +29,12 @@ jobs:
contents: read
packages: write
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v2
@ -57,9 +64,9 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
load: true
push: true
file: ./.github/deployment/Dockerfile-affine
tags: relocate
tags: ${{ env.LOCAL_CACHE }}
target: AFFiNE
- name: Build and push Docker image (AFFINE-Local)
@ -72,3 +79,5 @@ jobs:
tags: ${{ steps.meta_affine.outputs.tags }}
labels: ${{ steps.meta_affine.outputs.labels }}
target: AFFiNE
build-args: |
BASE_IMAGE=${{ env.LOCAL_CACHE }}