Replace drone by woodpecker
Some checks failed
ci/woodpecker/manual/test Pipeline failed

This commit is contained in:
Melora Hugues 2024-05-26 20:14:50 +02:00
parent 8fcc303be2
commit 75dd85821e
3 changed files with 51 additions and 72 deletions

View file

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

20
.woodpecker/release.yml Normal file
View file

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

31
.woodpecker/test.yml Normal file
View file

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