chore: ci
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
FROM relocate as relocate
|
ARG BASE_IMAGE=localhost:5000/toeverything/relocate:latest
|
||||||
|
|
||||||
|
FROM ${BASE_IMAGE} as relocate
|
||||||
|
|
||||||
# =============
|
# =============
|
||||||
# AFFiNE image
|
# AFFiNE image
|
||||||
|
|||||||
13
.github/workflows/affine.yml
vendored
13
.github/workflows/affine.yml
vendored
@@ -19,6 +19,7 @@ env:
|
|||||||
NAMESPACE: toeverything
|
NAMESPACE: toeverything
|
||||||
AFFINE_IMAGE_NAME: AFFiNE
|
AFFINE_IMAGE_NAME: AFFiNE
|
||||||
IMAGE_TAG_LATEST: nightly-latest
|
IMAGE_TAG_LATEST: nightly-latest
|
||||||
|
LOCAL_CACHE: localhost:5000/toeverything/relocate:latest
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ligo-virgo:
|
ligo-virgo:
|
||||||
@@ -28,6 +29,12 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -57,9 +64,9 @@ jobs:
|
|||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
load: true
|
push: true
|
||||||
file: ./.github/deployment/Dockerfile-affine
|
file: ./.github/deployment/Dockerfile-affine
|
||||||
tags: relocate
|
tags: ${{ env.LOCAL_CACHE }}
|
||||||
target: AFFiNE
|
target: AFFiNE
|
||||||
|
|
||||||
- name: Build and push Docker image (AFFINE-Local)
|
- name: Build and push Docker image (AFFINE-Local)
|
||||||
@@ -72,3 +79,5 @@ jobs:
|
|||||||
tags: ${{ steps.meta_affine.outputs.tags }}
|
tags: ${{ steps.meta_affine.outputs.tags }}
|
||||||
labels: ${{ steps.meta_affine.outputs.labels }}
|
labels: ${{ steps.meta_affine.outputs.labels }}
|
||||||
target: AFFiNE
|
target: AFFiNE
|
||||||
|
build-args: |
|
||||||
|
BASE_IMAGE=${{ env.LOCAL_CACHE }}
|
||||||
|
|||||||
Reference in New Issue
Block a user