Replace drone by woodpecker
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Melora Hugues 2024-05-26 20:14:50 +02:00
parent 8fcc303be2
commit 6758ea14b6
4 changed files with 52 additions and 73 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

View file

@ -1,6 +1,6 @@
# hugo-relie # 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 Personal blog using Hugo