Add contianer build pipeline
parent
772e1c5ca2
commit
05b982a1bd
@ -1,6 +1,14 @@
|
||||
version: 1
|
||||
when:
|
||||
- event: [pull_request]
|
||||
- event: push
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
- release/*
|
||||
- fix/*
|
||||
steps:
|
||||
build:
|
||||
image: node:alpine
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run build
|
||||
- npm run build
|
||||
|
@ -0,0 +1,18 @@
|
||||
version: 1
|
||||
when:
|
||||
- event: [tag]
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
steps:
|
||||
build:
|
||||
image: plugins/docker-buildx
|
||||
settings:
|
||||
dockerfile: Containerfile
|
||||
tag: ${CI_COMMIT_TAG##v}
|
||||
repo: git.trivernis.net/trivernis/plantwiki
|
||||
registry: git.trivernis.net
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
username: woodpeckerbot
|
||||
password:
|
||||
from_secret: fogejo_token
|
||||
|
Loading…
Reference in New Issue