Custom CI

This commit is contained in:
Natty 2023-04-20 22:14:20 +02:00
parent f9af2efef1
commit 7a927d8d46
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
5 changed files with 3 additions and 67 deletions

View File

@ -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/* ]

View File

@ -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

View File

@ -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*

View File

@ -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

View File

@ -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 ]