fix woodpecker pipeline definition (#370)

use https://woodpecker-ci.org/plugins/Release instead of the old drone plugin

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/370
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
This commit is contained in:
crapStone 2024-07-23 19:50:54 +00:00 committed by crapStone
parent bc9111a05f
commit efd1adae0f

View File

@ -18,6 +18,7 @@ steps:
build: build:
depends_on: vendor depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
pull: true
commands: commands:
- go version - go version
- just build - just build
@ -45,6 +46,7 @@ steps:
build-tag: build-tag:
depends_on: vendor depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
pull: true
commands: commands:
- go version - go version
- just build-tag ${CI_COMMIT_TAG##v} - just build-tag ${CI_COMMIT_TAG##v}
@ -56,6 +58,7 @@ steps:
test: test:
depends_on: build depends_on: build
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
pull: true
commands: commands:
- just test - just test
when: when:
@ -66,6 +69,7 @@ steps:
integration-tests: integration-tests:
depends_on: build depends_on: build
image: codeberg.org/6543/docker-images/golang_just image: codeberg.org/6543/docker-images/golang_just
pull: true
commands: commands:
- just integration - just integration
environment: environment:
@ -80,18 +84,13 @@ steps:
release: release:
depends_on: build depends_on: build
image: plugins/gitea-release:1.1.0 image: woodpeckerci/plugin-release:0.1.0
settings: settings:
base_url: https://codeberg.org base_url: https://codeberg.org
file_exists: overwrite file_exists: overwrite
files: build/codeberg-pages-server files: build/codeberg-pages-server
api_key: api_key:
from_secret: bot_token from_secret: bot_token
environment:
- CI_REPO_OWNER=${CI_REPO_OWNER}
- CI_REPO_NAME=${CI_REPO_NAME}
- CI_BUILD_EVENT=${CI_BUILD_EVENT}
- CI_COMMIT_REF=${CI_COMMIT_REF}
when: when:
- event: ['tag'] - event: ['tag']
branch: branch: