mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-07 07:37:50 +03:00
chore: ci
This commit is contained in:
parent
8d6ded2fcc
commit
e4533e6601
@ -1,4 +1,6 @@
|
||||
FROM relocate as relocate
|
||||
ARG BASE_IMAGE=localhost:5000/toeverything/relocate:latest
|
||||
|
||||
FROM ${BASE_IMAGE} as relocate
|
||||
|
||||
# =============
|
||||
# AFFiNE image
|
||||
|
13
.github/workflows/affine.yml
vendored
13
.github/workflows/affine.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user