Compare commits
No commits in common. "d343c53dcec9c7a013bdc39f61a645c366429207" and "02c979fe314486164437728c102f6624fd943f3b" have entirely different histories.
d343c53dce
...
02c979fe31
4 changed files with 51 additions and 2 deletions
20
.woodpecker/cleanup.yml
Normal file
20
.woodpecker/cleanup.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
depends_on:
|
||||
- oci-image-build
|
||||
|
||||
skip_clone: true
|
||||
# runs always
|
||||
runs_on: [ success, failure ]
|
||||
|
||||
when:
|
||||
event: [tag, push, manual]
|
||||
|
||||
steps:
|
||||
delete-tag:
|
||||
image: rg.fr-par.scw.cloud/hamburghammer/scaleway-delete-image-plugin
|
||||
pull: true
|
||||
settings:
|
||||
token:
|
||||
from_secret: docker_token
|
||||
image-name: dchat/setup-image
|
||||
tag: "${CI_PIPELINE_NUMBER}"
|
||||
region: fr-par
|
|
@ -1,12 +1,13 @@
|
|||
matrix:
|
||||
MODULE:
|
||||
- bot
|
||||
- discord
|
||||
|
||||
when:
|
||||
event: [tag, push, manual]
|
||||
|
||||
variables:
|
||||
- &image 'docker.io/maven:3.9-eclipse-temurin-23-alpine'
|
||||
- &image 'docker.io/maven:3.9-eclipse-temurin-21'
|
||||
|
||||
steps:
|
||||
compile:
|
|
@ -5,7 +5,7 @@ matrix:
|
|||
- linux/amd64
|
||||
|
||||
depends_on:
|
||||
- java
|
||||
- oci-image-cache-build
|
||||
|
||||
steps:
|
||||
build-only:
|
||||
|
@ -22,6 +22,8 @@ steps:
|
|||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
||||
dry-run: true
|
||||
build_args:
|
||||
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
- event: [push, manual]
|
||||
branch:
|
||||
|
@ -41,6 +43,8 @@ steps:
|
|||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
||||
auto_tag: true
|
||||
build_args:
|
||||
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
- branch: main
|
||||
event: [push, tag, manual]
|
24
.woodpecker/oci-image-cache-build.yml
Normal file
24
.woodpecker/oci-image-cache-build.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
matrix:
|
||||
PLATFORM:
|
||||
- linux/amd64
|
||||
|
||||
depends_on:
|
||||
- java
|
||||
|
||||
when:
|
||||
event: [tag, push, manual]
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: woodpeckerci/plugin-docker-buildx:4.1.0
|
||||
settings:
|
||||
registry: rg.fr-par.scw.cloud/hamburghammer
|
||||
username: nologin
|
||||
password:
|
||||
from_secret: docker_token
|
||||
dockerfile: Dockerfile
|
||||
target: setup-image
|
||||
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image
|
||||
tag: "${CI_PIPELINE_NUMBER}"
|
||||
pull_image: false
|
||||
platforms: ${PLATFORM}
|
Loading…
Reference in a new issue