1
0
This commit is contained in:
2024-05-28 19:13:38 +03:00
parent a0cfdfa8a5
commit de44930c2d
8 changed files with 128 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
when:
event: [ push, tag, cron, manual ]
- event: [ push, tag, cron, manual ]
evaluate: 'LATEST_TAG == ""'
variables:
- &image_name 'quay.krd.sh/krd/woodpecker-sonatype-nexus'

43
.woodpecker/.latest.yml Normal file
View File

@@ -0,0 +1,43 @@
when:
- event: [ manual ]
evaluate: 'LATEST_TAG != ""'
variables:
- &image_name 'quay.krd.sh/krd/woodpecker-sonatype-nexus'
- &ext_image_name 'docker.io/rockdrilla/woodpecker-sonatype-nexus'
- &skopeo_image 'quay.krd.sh/quay_io/containers/skopeo:v1.15.0'
## kind of fixup (remove in near future)
## ref: https://github.com/woodpecker-ci/plugin-git/releases
clone:
git:
image: quay.krd.sh/docker_io/woodpeckerci/plugin-git:2.5.0
## NB: ${variable} expressions are subject to pre-processing.
## ref: https://woodpecker-ci.org/docs/usage/environment
steps:
- name: verify-registry-credentials
image: *skopeo_image
environment:
GOMAXPROCS: "4"
MALLOC_ARENA_MAX: "4"
secrets: [ REGISTRY_AUTH ]
commands:
- .ci/registry-login.sh quay.krd.sh docker.io
- name: image-sync-latest
image: *skopeo_image
environment:
GOMAXPROCS: "4"
MALLOC_ARENA_MAX: "4"
##
IMAGE_NAME: *image_name
EXT_IMAGE_NAME: *ext_image_name
commands:
- .ci/sync-latest.sh
## personal tweaks :)
labels:
network: dmz