From e59533bf43f9216f6e4e26ecf507dd60f73c484c Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 16 Mar 2023 13:42:47 +0100 Subject: [PATCH] feat: Switch CI and container registry --- .drone.yml | 52 ------------------------------------------------- .licenseignore | 2 +- .woodpecker.yml | 42 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 53 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index eceaeb2..0000000 --- a/.drone.yml +++ /dev/null @@ -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 diff --git a/.licenseignore b/.licenseignore index 159a719..cc9dce3 100644 --- a/.licenseignore +++ b/.licenseignore @@ -12,7 +12,7 @@ package.json yarn.lock robots.txt \.licenseignore -\.drone.yml +\.woodpecker.yml \.editorconfig \.envrc shell.nix diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..0d869fe --- /dev/null +++ b/.woodpecker.yml @@ -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 \ No newline at end of file