generated from Templates/Baseline
### 📖 Summary - update changelog - update package ### 📑 Test Plan ✅ CI pipeline tests (Default) ### 💬 Details _No response_ ### 📚 Additional Notes _No response_ Reviewed-on: #154
113 lines
3.0 KiB
YAML
113 lines
3.0 KiB
YAML
when:
|
|
- event: [pull_request, tag, cron]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
variables:
|
|
- &build_plugin 'woodpeckerci/plugin-docker-buildx:5.1.0'
|
|
# deployment targets
|
|
- &publish_repos 'ocram85/arkanum,gitea.ocram85.com/arkanum/arkanum,ghcr.io/ocram85/arkanum,codeberg.org/arkanum/arkanum'
|
|
# logins for deployment targets
|
|
- publish_logins: &publish_logins
|
|
# Default DockerHub login
|
|
- registry: https://index.docker.io/v1/
|
|
username:
|
|
from_secret: docker_user
|
|
password:
|
|
from_secret: docker_passwd
|
|
# Additional Quay.IO login
|
|
- registry: https://gitea.ocram85.com
|
|
username:
|
|
from_secret: gitea_user
|
|
password:
|
|
from_secret: gitea_passwd
|
|
# GitHub Container Registry
|
|
- registry: https://ghcr.io
|
|
username:
|
|
from_secret: github_user
|
|
password:
|
|
from_secret: github_passwd
|
|
# Codeberg
|
|
- registry: https://codeberg.org
|
|
username:
|
|
from_secret: codeberg_user
|
|
password:
|
|
from_secret: codeberg_passwd
|
|
|
|
|
|
steps:
|
|
# TODO: Enable this in upcoming PRs.
|
|
#check-editorconfig:
|
|
# image: woodpeckerci/plugin-editorconfig-checker:0.2
|
|
# pull: true
|
|
|
|
test:
|
|
image: *build_plugin
|
|
settings:
|
|
dry_run: true
|
|
registry: gitea.ocram85.com
|
|
repo: test
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
auto_tag: true
|
|
build_args:
|
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
- TAG=${CI_COMMIT_TAG}
|
|
when:
|
|
event: pull_request
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
publish:
|
|
image: *build_plugin
|
|
settings:
|
|
repo: *publish_repos
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
auto_tag: true
|
|
logins: *publish_logins
|
|
build_args:
|
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
- TAG=${CI_COMMIT_TAG}
|
|
when:
|
|
event: [push, tag, cron]
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
build-next:
|
|
image: *build_plugin
|
|
settings:
|
|
repo: *publish_repos
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
tag: next
|
|
logins: *publish_logins
|
|
build_args:
|
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
- TAG=${CI_COMMIT_TAG}
|
|
when:
|
|
event: [pull_request]
|
|
|
|
# TODO: Remove old plugin in next release tag
|
|
#gitea-release:
|
|
# image: plugins/gitea-release
|
|
# settings:
|
|
# api_key:
|
|
# from_secret: ci_token
|
|
# base_url: https://gitea.ocram85.com
|
|
# title: ${CI_COMMIT_TAG}
|
|
# note: "> :bulb: **Note:** Please refer to [CHANGELOG.md](src/branch/${CI_REPO_DEFAULT_BRANCH}/CHANGELOG.md) for details."
|
|
# when:
|
|
# event: [tag]
|
|
# branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
forge-release:
|
|
image: woodpeckerci/plugin-release
|
|
settings:
|
|
api_key:
|
|
from_secret: ci_token
|
|
title: ${CI_COMMIT_TAG}
|
|
note: "> :bulb: **Note:** Please refer to [CHANGELOG.md](src/branch/${CI_REPO_DEFAULT_BRANCH}/CHANGELOG.md) for details."
|
|
when:
|
|
event: [tag]
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|