Custom CI
This commit is contained in:
parent
f9af2efef1
commit
7a927d8d46
|
@ -1,21 +0,0 @@
|
||||||
pipeline:
|
|
||||||
testCommit:
|
|
||||||
image: node:latest
|
|
||||||
commands:
|
|
||||||
- cp .config/ci.yml .config/default.yml
|
|
||||||
- corepack enable
|
|
||||||
- corepack prepare pnpm@latest --activate
|
|
||||||
- pnpm i --frozen-lockfile
|
|
||||||
- pnpm run build
|
|
||||||
- pnpm run migrate
|
|
||||||
|
|
||||||
services:
|
|
||||||
database:
|
|
||||||
image: postgres:15
|
|
||||||
environment:
|
|
||||||
- POSTGRES_PASSWORD=test
|
|
||||||
redis:
|
|
||||||
image: redis
|
|
||||||
|
|
||||||
branches:
|
|
||||||
include: [ main, beta, develop, feature/* ]
|
|
|
@ -1,14 +0,0 @@
|
||||||
pipeline:
|
|
||||||
publish-docker-latest:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: thatonecalculator/calckey
|
|
||||||
tags: rc
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username:
|
|
||||||
# Secret 'docker_username' needs to be set in the CI settings
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
# Secret 'docker_password' needs to be set in the CI settings
|
|
||||||
from_secret: docker_password
|
|
||||||
branches: beta
|
|
|
@ -1,18 +0,0 @@
|
||||||
pipeline:
|
|
||||||
publish-docker-tag:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: thatonecalculator/calckey
|
|
||||||
# Uses the tag from git for the container tag
|
|
||||||
tags: ${CI_COMMIT_TAG}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username:
|
|
||||||
# Secret 'docker_username' needs to be set in the CI settings
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
# Secret 'docker_password' needs to be set in the CI settings
|
|
||||||
from_secret: docker_password
|
|
||||||
when:
|
|
||||||
# Push new version when version tag is created
|
|
||||||
event: tag
|
|
||||||
tag: v*
|
|
|
@ -1,9 +1,9 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
publish-docker-latest:
|
publish-docker-latest:
|
||||||
image: plugins/kaniko
|
image: docker.io/plugins/kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: thatonecalculator/calckey
|
repo: git.astolfo.social/natty/calckey
|
||||||
tags: latest
|
tags: ${CI_COMMIT_TAG}
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
username:
|
username:
|
||||||
# Secret 'docker_username' needs to be set in the CI settings
|
# Secret 'docker_username' needs to be set in the CI settings
|
|
@ -1,11 +0,0 @@
|
||||||
pipeline:
|
|
||||||
docker-build:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: thatonecalculator/calckey
|
|
||||||
tags: test
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
no_push: true
|
|
||||||
|
|
||||||
branches:
|
|
||||||
include: [ main, develop, beta ]
|
|
Loading…
Reference in New Issue