29 lines
696 B
YAML
29 lines
696 B
YAML
steps:
|
|
build-main:
|
|
when:
|
|
branch: main
|
|
image: woodpeckerci/plugin-docker-buildx:v2.1.0
|
|
pull: true
|
|
settings:
|
|
platforms: linux/amd64
|
|
registry: ${CI_FORGE_URL}
|
|
username: WoodpeckerCI
|
|
password:
|
|
from_secret: gitea_token
|
|
repo: git.verdigado.com/${CI_REPO,,}
|
|
tag: "latest"
|
|
|
|
build-branch:
|
|
when:
|
|
branch:
|
|
exclude: [ "main" ]
|
|
image: woodpeckerci/plugin-docker-buildx:v2.1.0
|
|
pull: true
|
|
settings:
|
|
platforms: linux/amd64
|
|
registry: ${CI_FORGE_URL}
|
|
username: WoodpeckerCI
|
|
password:
|
|
from_secret: gitea_token
|
|
repo: git.verdigado.com/${CI_REPO,,}
|
|
tag: ${CI_COMMIT_BRANCH}
|