ci: mirror node:20-alpine first, then build admin
This commit is contained in:
parent
a13dce546d
commit
e044d4c5cc
1 changed files with 11 additions and 1 deletions
|
|
@ -3,6 +3,17 @@ when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: mirror-base-images
|
||||||
|
image: gcr.io/go-containerregistry/crane:debug
|
||||||
|
environment:
|
||||||
|
REG_USER:
|
||||||
|
from_secret: REGISTRY_USERNAME
|
||||||
|
REG_PASS:
|
||||||
|
from_secret: REGISTRY_PASSWORD
|
||||||
|
commands:
|
||||||
|
- crane auth login registry.nxtgauge.com -u "$REG_USER" -p "$REG_PASS"
|
||||||
|
- crane copy docker.io/library/node:20-alpine registry.nxtgauge.com/node:20-alpine
|
||||||
|
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: woodpeckerci/plugin-kaniko:2.1.1
|
image: woodpeckerci/plugin-kaniko:2.1.1
|
||||||
settings:
|
settings:
|
||||||
|
|
@ -10,7 +21,6 @@ steps:
|
||||||
repo: nxtgauge-admin-solid
|
repo: nxtgauge-admin-solid
|
||||||
dockerfile: Dockerfile.simple
|
dockerfile: Dockerfile.simple
|
||||||
tags:
|
tags:
|
||||||
- ${CI_COMMIT_SHA}
|
|
||||||
- latest
|
- latest
|
||||||
- high-performance-latest
|
- high-performance-latest
|
||||||
username:
|
username:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue