generated from Templates/Baseline
Add addiontal container image deployment targets (#63)
#### 📖 Summary Adds additional deployment targets: - GitHub Container registry - Docker Hub - updates woddpecker workflow to version `>1.0.0 syntax` - fix workflow file names - update woodpecker/buildx plugin to version `2`. This enables multiple targets with one build step #### 📑 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. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: CodeServer/arkanum#63
This commit is contained in:
parent
a1a4c2b1e9
commit
b0fbd8edf6
|
@ -1,49 +0,0 @@
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
buildImage:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
registry: gitea.ocram85.com
|
|
||||||
repo: gitea.ocram85.com/codeserver/arkanum
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: true
|
|
||||||
username:
|
|
||||||
from_secret: gitea_user
|
|
||||||
password:
|
|
||||||
from_secret: gitea_passwd
|
|
||||||
build_args:
|
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
||||||
- TAG=${CI_COMMIT_TAG}
|
|
||||||
when:
|
|
||||||
event: push
|
|
||||||
branch: master
|
|
||||||
|
|
||||||
buildTag:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
registry: gitea.ocram85.com
|
|
||||||
repo: gitea.ocram85.com/codeserver/arkanum
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: true
|
|
||||||
username:
|
|
||||||
from_secret: gitea_user
|
|
||||||
password:
|
|
||||||
from_secret: gitea_passwd
|
|
||||||
build_args:
|
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
||||||
- TAG=${CI_COMMIT_TAG}
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
GiteaRelease:
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: RENOVATE_TOKEN
|
|
||||||
base_url: https://gitea.ocram85.com
|
|
||||||
title: ${CI_COMMIT_TAG}
|
|
||||||
note: "> :bulb: **Note:** See [CHANGELOG.md](src/branch/master/CHANGELOG.md) for recent changes."
|
|
||||||
when:
|
|
||||||
event: tag
|
|
|
@ -1,32 +0,0 @@
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
buildTestImage:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
#dry_run: true
|
|
||||||
registry: gitea.ocram85.com
|
|
||||||
repo: gitea.ocram85.com/codeserver/arkanum
|
|
||||||
platforms: linux/amd64
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
tags: next
|
|
||||||
username:
|
|
||||||
from_secret: gitea_user
|
|
||||||
password:
|
|
||||||
from_secret: gitea_passwd
|
|
||||||
build_args:
|
|
||||||
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
|
||||||
- TAG=${CI_COMMIT_TAG}
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
|
|
||||||
triggerPortainer:
|
|
||||||
image: ocram85/portainer-serviceupdate
|
|
||||||
settings:
|
|
||||||
VERBOSE: true
|
|
||||||
URI: "https://portainer.ocram85.com"
|
|
||||||
TOKEN:
|
|
||||||
from_secret: NEXT_TOKEN
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
|
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:
|
||||||
|
latest:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:2
|
||||||
|
settings:
|
||||||
|
repo: *publish_repos
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
auto_tag: true
|
||||||
|
logins: *publish_logins
|
||||||
|
build_args:
|
||||||
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
||||||
|
- TAG=${CI_COMMIT_TAG}
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:2
|
||||||
|
settings:
|
||||||
|
repo: *publish_repos
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
auto_tag: true
|
||||||
|
logins: *publish_logins
|
||||||
|
build_args:
|
||||||
|
- VERSION=${CI_COMMIT_TAG:-PR ${CI_COMMIT_PULL_REQUEST}}
|
||||||
|
- TAG=${CI_COMMIT_TAG}
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
GiteaRelease:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: RENOVATE_TOKEN
|
||||||
|
base_url: https://gitea.ocram85.com
|
||||||
|
title: ${CI_COMMIT_TAG}
|
||||||
|
note: "> :bulb: **Note:** See [CHANGELOG.md](src/branch/master/CHANGELOG.md) for recent changes."
|
||||||
|
when:
|
||||||
|
event: tag
|
|
@ -0,0 +1,57 @@
|
||||||
|
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,4 +1,4 @@
|
||||||
pipeline:
|
steps:
|
||||||
testDockerfile:
|
testDockerfile:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
15
README.md
15
README.md
|
@ -34,10 +34,19 @@ You can download the image from the gitea embedded container registry: `gitea.oc
|
||||||
|
|
||||||
- `latest` - Is based on the lasted master branch commit.
|
- `latest` - Is based on the lasted master branch commit.
|
||||||
- `next` - Is a test build based on the pull request
|
- `next` - Is a test build based on the pull request
|
||||||
- `1`, `0.1`, `0.1.0` - tag based version.
|
- `1`, `0.1`, `0.1.0`, `1.0.0` - tag based version.
|
||||||
|
|
||||||
> **💡 NOTE: See the [packages page](https://gitea.ocram85.com/CodeServer/-/packages/container/arkanum/latest) for latest version and all other available tags.**
|
> **💡 NOTE: See the [packages page](https://gitea.ocram85.com/CodeServer/-/packages/container/arkanum/latest) for latest version and all other available tags.**
|
||||||
|
|
||||||
|
The container images are also published to these registries:
|
||||||
|
|
||||||
|
- [Docker Hub](https://hub.docker.com/r/ocram85/arkanum)
|
||||||
|
- Pull Endpoint: `ocram85/arkanum`
|
||||||
|
- [GitHub Container Registry](https://github.com/OCram85/arkanum/pkgs/container/arkanum)
|
||||||
|
- Pull Endpoint: `ghcr.io/ocram85/arkanum`
|
||||||
|
- [Codeberg Packages](https://codeberg.org/codeserver/-/packages/container/arkanum/next)
|
||||||
|
- Pull Endpoint: `codeberg.org/codeserver/arkanum`
|
||||||
|
|
||||||
### 2.a Run as Docker Swarm Stack
|
### 2.a Run as Docker Swarm Stack
|
||||||
|
|
||||||
This example shows how to run arkanum as an additional swarm stack.
|
This example shows how to run arkanum as an additional swarm stack.
|
||||||
|
@ -246,9 +255,9 @@ following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# restart the installation
|
# restart the installation
|
||||||
arkanum --install-extensions
|
arkanum config install-extensions
|
||||||
# Optional: reset the vscode user setting
|
# Optional: reset the vscode user setting
|
||||||
arkanum --reset-codesetting
|
arkanum config reset-codesettings
|
||||||
# Reload with command F1 + Developer: Reload Window
|
# Reload with command F1 + Developer: Reload Window
|
||||||
```
|
```
|
||||||
## 😡 We're Using GitHub Under Protest
|
## 😡 We're Using GitHub Under Protest
|
||||||
|
|
Loading…
Reference in New Issue