45 lines
982 B
YAML
45 lines
982 B
YAML
matrix:
|
|
PLATFORM:
|
|
- linux/amd64
|
|
|
|
depends_on:
|
|
- java
|
|
|
|
variables:
|
|
- &image 'docker.io/woodpeckerci/plugin-docker-buildx:5.0.0'
|
|
|
|
steps:
|
|
build-only:
|
|
image: *image
|
|
settings:
|
|
registry: rg.fr-par.scw.cloud/hamburghammer
|
|
username: nologin
|
|
password:
|
|
from_secret: docker_token
|
|
dockerfile: Dockerfile
|
|
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/bot
|
|
tags: latest
|
|
pull_image: false
|
|
platforms: ${PLATFORM}
|
|
dry-run: true
|
|
when:
|
|
- event: [push, manual]
|
|
branch:
|
|
exclude: [main]
|
|
|
|
build:
|
|
image: *image
|
|
settings:
|
|
registry: rg.fr-par.scw.cloud/hamburghammer
|
|
username: nologin
|
|
password:
|
|
from_secret: docker_token
|
|
dockerfile: Dockerfile
|
|
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/bot
|
|
tags: latest
|
|
pull_image: false
|
|
platforms: ${PLATFORM}
|
|
auto_tag: true
|
|
when:
|
|
- branch: main
|
|
event: [push, tag, manual]
|