feat: Switch CI and container registry

This commit is contained in:
Yarmo Mackenbach 2023-03-16 13:42:47 +01:00
parent e0883445a7
commit e59533bf43
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 43 additions and 53 deletions

View file

@ -1,52 +0,0 @@
---
type: docker
kind: pipeline
name: build-latest-container
steps:
- name: build latest container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: keyoxide/keyoxide
tags: latest
- name: build tag container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: keyoxide/keyoxide
auto_tag: true
trigger:
event:
- tag
---
type: docker
kind: pipeline
name: build-dev-container
steps:
- name: build dev container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: keyoxide/keyoxide
tags: dev
trigger:
branch:
- dev
event:
- push

View file

@ -12,7 +12,7 @@ package.json
yarn.lock yarn.lock
robots.txt robots.txt
\.licenseignore \.licenseignore
\.drone.yml \.woodpecker.yml
\.editorconfig \.editorconfig
\.envrc \.envrc
shell.nix shell.nix

42
.woodpecker.yml Normal file
View file

@ -0,0 +1,42 @@
pipeline:
build-latest-container:
image: plugins/docker
settings:
registry: codeberg.org
username:
from_secret: codeberg_username
password:
from_secret: codeberg_password
repo: keyoxide/keyoxide-web
tags: latest
when:
branch: main
event: tag
build-tag-container:
image: plugins/docker
settings:
registry: codeberg.org
username:
from_secret: codeberg_username
password:
from_secret: codeberg_password
repo: keyoxide/keyoxide-web
auto_tag: true
when:
branch: main
event: tag
build-dev-container:
image: plugins/docker
settings:
registry: codeberg.org
username:
from_secret: codeberg_username
password:
from_secret: codeberg_password
repo: keyoxide/keyoxide-web
tags: dev
when:
branch: dev
event: push