ci: Plugin-Images mit oumta-ci und Secret oumta_ci_token veröffentlichen
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ea9d0308d
commit
8c5d7f26bb
2 files changed
+10
-14
No files matched your search
@@ -26,10 +26,9 @@ steps:
|
|||||||
context: woodpecker/deploy
|
context: woodpecker/deploy
|
||||||
dockerfile: woodpecker/deploy/Dockerfile
|
dockerfile: woodpecker/deploy/Dockerfile
|
||||||
tags: ${CI_COMMIT_TAG##deploy-}
|
tags: ${CI_COMMIT_TAG##deploy-}
|
||||||
username:
|
username: oumta-ci
|
||||||
from_secret: registry_username
|
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: oumta_ci_token
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
ref: refs/tags/deploy-v*
|
ref: refs/tags/deploy-v*
|
||||||
@@ -53,10 +52,9 @@ steps:
|
|||||||
context: woodpecker/bump
|
context: woodpecker/bump
|
||||||
dockerfile: woodpecker/bump/Dockerfile
|
dockerfile: woodpecker/bump/Dockerfile
|
||||||
tags: ${CI_COMMIT_TAG##bump-}
|
tags: ${CI_COMMIT_TAG##bump-}
|
||||||
username:
|
username: oumta-ci
|
||||||
from_secret: registry_username
|
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: oumta_ci_token
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
ref: refs/tags/bump-v*
|
ref: refs/tags/bump-v*
|
||||||
@@ -129,8 +129,8 @@ Writes a pushed dev or beta image with its digest to `tanztee/oumta-deploy` (D16
|
|||||||
Settings:
|
Settings:
|
||||||
|
|
||||||
- `var` (required): variable in `envs/<env>/images.env`, e.g. `AUTH_IMAGE`. `{major}` is replaced by the major of the tag (`APP_V{major}_IMAGE` -> `APP_V2_IMAGE`).
|
- `var` (required): variable in `envs/<env>/images.env`, e.g. `AUTH_IMAGE`. `{major}` is replaced by the major of the tag (`APP_V{major}_IMAGE` -> `APP_V2_IMAGE`).
|
||||||
- `deploy_token` (required): token of `oumta-ci`, write access to oumta-deploy only. Limit the secret to this image and the events `tag` and `manual`.
|
- `deploy_token` (required): token of `oumta-ci` (`oumta_ci_token`), write access to oumta-deploy
|
||||||
- `registry_username`, `registry_password`: read access to the registry for the digest
|
- `registry_username`, `registry_password`: read access to the registry for the digest (`oumta-ci` with the same token)
|
||||||
- `envs`: fixed environments instead of the tag rule, e.g. `dev beta` (oumta-keyklo)
|
- `envs`: fixed environments instead of the tag rule, e.g. `dev beta` (oumta-keyklo)
|
||||||
- `tag`: default `CI_COMMIT_TAG`
|
- `tag`: default `CI_COMMIT_TAG`
|
||||||
- `registry`: default `git.uesome.de`
|
- `registry`: default `git.uesome.de`
|
||||||
@@ -152,19 +152,17 @@ steps:
|
|||||||
registry: git.uesome.de
|
registry: git.uesome.de
|
||||||
repo: git.uesome.de/tanztee/oumta-auth
|
repo: git.uesome.de/tanztee/oumta-auth
|
||||||
tags: ${CI_COMMIT_TAG}
|
tags: ${CI_COMMIT_TAG}
|
||||||
username:
|
username: oumta-ci
|
||||||
from_secret: registry_username
|
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: oumta_ci_token
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: git.uesome.de/actions/ci-cd/deploy:v1.0.0
|
image: git.uesome.de/actions/ci-cd/deploy:v1.0.0
|
||||||
settings:
|
settings:
|
||||||
var: AUTH_IMAGE
|
var: AUTH_IMAGE
|
||||||
registry_username:
|
registry_username: oumta-ci
|
||||||
from_secret: registry_username
|
|
||||||
registry_password:
|
registry_password:
|
||||||
from_secret: registry_password
|
from_secret: oumta_ci_token
|
||||||
deploy_token:
|
deploy_token:
|
||||||
from_secret: oumta_ci_token
|
from_secret: oumta_ci_token
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user