generated from Templates/Baseline
#### 📖 Summary <!-- Provide a summary of your changes. Describe the why and not how. --> #### 📑 Test Plan > 💡 Select your test plan for the code changes. | Choice | Test Method | | :----: | :----------- | | ✅ | CI pipeline tests | | | Custom test | | | No test plan | ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Reviewed-on: CodeServer/arkanum#73 Co-authored-by: OCram85 <marco.blessing@googlemail.com> Co-committed-by: OCram85 <marco.blessing@googlemail.com>
This commit is contained in:
parent
839024dc84
commit
496784ab43
|
@ -1,7 +1,11 @@
|
||||||
depends_on:
|
when:
|
||||||
- test
|
- event: [pull_request, tag, cron]
|
||||||
|
- event: push
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
- &build_plugin 'woodpeckerci/plugin-docker-buildx:2.2.0'
|
||||||
# deployment targets
|
# deployment targets
|
||||||
- &publish_repos 'ocram85/arkanum,gitea.ocram85.com/codeserver/arkanum,ghcr.io/ocram85/arkanum,codeberg.org/codeserver/arkanum'
|
- &publish_repos 'ocram85/arkanum,gitea.ocram85.com/codeserver/arkanum,ghcr.io/ocram85/arkanum,codeberg.org/codeserver/arkanum'
|
||||||
# logins for deployment targets
|
# logins for deployment targets
|
||||||
|
@ -31,35 +35,64 @@ variables:
|
||||||
password:
|
password:
|
||||||
from_secret: codeberg_passwd
|
from_secret: codeberg_passwd
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
latest:
|
test:
|
||||||
image: woodpeckerci/plugin-docker-buildx:2
|
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:
|
settings:
|
||||||
repo: *publish_repos
|
repo: *publish_repos
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
logins: *publish_logins
|
logins: *publish_logins
|
||||||
build_args:
|
build_args:
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
||||||
- TAG=${CI_COMMIT_TAG}
|
- TAG=${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [push, tag, cron]
|
||||||
branch: master
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
release:
|
build-next:
|
||||||
image: woodpeckerci/plugin-docker-buildx:2
|
image: *build_plugin
|
||||||
settings:
|
settings:
|
||||||
repo: *publish_repos
|
repo: *publish_repos
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
auto_tag: true
|
platforms: linux/amd64
|
||||||
|
tag: next
|
||||||
logins: *publish_logins
|
logins: *publish_logins
|
||||||
build_args:
|
build_args:
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
||||||
- TAG=${CI_COMMIT_TAG}
|
- TAG=${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [pull_request]
|
||||||
|
|
||||||
GiteaRelease:
|
triggerPortainer:
|
||||||
|
image: ocram85/portainer-serviceupdate
|
||||||
|
settings:
|
||||||
|
VERBOSE: true
|
||||||
|
URI: "https://portainer.ocram85.com"
|
||||||
|
TOKEN:
|
||||||
|
from_secret: NEXT_TOKEN
|
||||||
|
when:
|
||||||
|
event: [pull_request]
|
||||||
|
|
||||||
|
gitea-release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
|
@ -68,4 +101,5 @@ steps:
|
||||||
title: ${CI_COMMIT_TAG}
|
title: ${CI_COMMIT_TAG}
|
||||||
note: "> :bulb: **Note:** See [CHANGELOG.md](src/branch/master/CHANGELOG.md) for recent changes."
|
note: "> :bulb: **Note:** See [CHANGELOG.md](src/branch/master/CHANGELOG.md) for recent changes."
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [tag]
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
@ -1,57 +0,0 @@
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
|
|
||||||
variables:
|
|
||||||
# deployment targets
|
|
||||||
- &publish_repos 'ocram85/arkanum,gitea.ocram85.com/codeserver/arkanum,ghcr.io/ocram85/arkanum,codeberg.org/codeserver/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:
|
|
||||||
buildTestImage:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx:2
|
|
||||||
settings:
|
|
||||||
#dry_run: true
|
|
||||||
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}
|
|
||||||
|
|
||||||
triggerPortainer:
|
|
||||||
image: ocram85/portainer-serviceupdate
|
|
||||||
settings:
|
|
||||||
VERBOSE: true
|
|
||||||
URI: "https://portainer.ocram85.com"
|
|
||||||
TOKEN:
|
|
||||||
from_secret: NEXT_TOKEN
|
|
|
@ -1,12 +0,0 @@
|
||||||
steps:
|
|
||||||
testDockerfile:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
dry_run: true
|
|
||||||
registry: gitea.ocram85.com
|
|
||||||
repo: gitea.ocram85.com/codeserver/arkanum
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
tags: next
|
|
||||||
build_args:
|
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
||||||
- TAG=${CI_COMMIT_TAG}
|
|
Loading…
Reference in New Issue