From 6758ea14b6a65e119f133bd73884d24468d47f39 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sun, 26 May 2024 20:14:50 +0200 Subject: [PATCH] Replace drone by woodpecker --- .drone.yml | 72 ----------------------------------------- .woodpecker/release.yml | 20 ++++++++++++ .woodpecker/test.yml | 31 ++++++++++++++++++ README.md | 2 +- 4 files changed, 52 insertions(+), 73 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/release.yml create mode 100644 .woodpecker/test.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index d9d428f..0000000 --- a/.drone.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -# Test building the code and docker image -kind: pipeline -type: docker -name: test-build - -steps: -- name: docker-build-only - image: thegeeklab/drone-docker-buildx - privileged: true - settings: - repo: git.faercol.me/faercol/hugo-relie - tags: latest - dry_run: true - platforms: - - linux/amd64 - depends_on: - when: - branch: - exclude: - - main - -- name: docker-build-push - image: thegeeklab/drone-docker-buildx - privileged: true - settings: - repo: git.faercol.me/faercol/hugo-relie - registry: git.faercol.me - tags: latest - username: - from_secret: GIT_USERNAME - password: - from_secret: GIT_PASSWORD - platforms: - - linux/amd64 - when: - branch: - - main - -trigger: - event: - - push - - tag - ---- -# On a tag, only build the related docker image -kind: pipeline -type: docker -name: tag-release -depends_on: - - test-build - -steps: -- name: docker-push-tag - image: thegeeklab/drone-docker-buildx - privileged: true - settings: - registry: git.faercol.me - repo: git.faercol.me/faercol/hugo-relie - auto_tag: true - platforms: - - linux/amd64 - username: - from_secret: GIT_USERNAME - password: - from_secret: GIT_PASSWORD - -trigger: - event: - - tag - -... \ No newline at end of file diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml new file mode 100644 index 0000000..8e9260b --- /dev/null +++ b/.woodpecker/release.yml @@ -0,0 +1,20 @@ +depends_on: + - test + +steps: +- name: docker-push-tag + image: woodpeckerci/plugin-docker-buildx + privileged: true + settings: + registry: git.faercol.me + repo: git.faercol.me/faercol/hugo-relie + auto_tag: true + platforms: + - linux/amd64 + username: + from_secret: GIT_USERNAME + password: + from_secret: GIT_PASSWORD + +when: + event: [tag] diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..e887029 --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,31 @@ +steps: +- name: docker-build-only + image: woodpeckerci/plugin-docker-buildx + privileged: true + settings: + repo: git.faercol.me/faercol/hugo-relie + tags: latest + dry_run: true + platforms: + - linux/amd64 + when: + branch: + exclude: + - main + +- name: docker-build-push + image: woodpeckerci/plugin-docker-buildx + privileged: true + settings: + repo: git.faercol.me/faercol/hugo-relie + registry: git.faercol.me + tags: latest + username: + from_secret: GIT_USERNAME + password: + from_secret: GIT_PASSWORD + platforms: + - linux/amd64 + when: + branch: + - main diff --git a/README.md b/README.md index 29b80a5..6be9f16 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # hugo-relie -[![Build Status](https://drone.faercol.me/api/badges/faercol/hugo-relie/status.svg)](https://drone.faercol.me/faercol/hugo-relie) +[![status-badge](https://ci-server.internal.faercol.me/api/badges/1/status.svg)](https://ci-server.internal.faercol.me/repos/1) Personal blog using Hugo