35 lines
958 B
YAML
35 lines
958 B
YAML
steps:
|
|
build main:
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
image: woodpeckerci/plugin-docker-buildx:4.1.0@sha256:28c6bed43137343bd8fedd6477bd9c3cdc7e166c775c8a2a529bd6f96b52f22c
|
|
pull: true
|
|
settings:
|
|
platforms: linux/amd64
|
|
registry: ${CI_FORGE_URL}
|
|
username: WoodpeckerCI
|
|
password:
|
|
from_secret: gitea_token
|
|
repo: git.verdigado.com/${CI_REPO,,}
|
|
tags:
|
|
- 'latest'
|
|
- ${CI_COMMIT_SHA}
|
|
|
|
build branch:
|
|
when:
|
|
- event: push
|
|
branch:
|
|
exclude: ['main']
|
|
image: woodpeckerci/plugin-docker-buildx:4.1.0@sha256:28c6bed43137343bd8fedd6477bd9c3cdc7e166c775c8a2a529bd6f96b52f22c
|
|
pull: true
|
|
settings:
|
|
platforms: linux/amd64
|
|
registry: ${CI_FORGE_URL}
|
|
username: WoodpeckerCI
|
|
password:
|
|
from_secret: gitea_token
|
|
repo: git.verdigado.com/${CI_REPO,,}
|
|
tags:
|
|
- ${CI_COMMIT_BRANCH}
|
|
- ${CI_COMMIT_SHA}
|