This commit is contained in:
parent
88d96d13f2
commit
e3d3e44688
1 changed files with 32 additions and 13 deletions
|
@ -18,16 +18,35 @@ steps:
|
||||||
- pnpm publish --no-git-checks
|
- pnpm publish --no-git-checks
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
|
||||||
container_build_release_push:
|
build_publish:
|
||||||
#image: docker.io/maltegrosse/woodpecker-buildah:0.0.12
|
image: quay.io/podman/stable:latest
|
||||||
image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
# Caution: This image is built daily. It might fill up your image store quickly.
|
||||||
settings:
|
pull: true
|
||||||
registry: code.philo.ydns.eu
|
# Fill in the trusted checkbox in Woodpecker's settings as well
|
||||||
repository: philorg/test-woodpecker-webapp
|
privileged: true
|
||||||
tags: ${CI_COMMIT_SHA}
|
environment:
|
||||||
architectures: amd64
|
registry_token:
|
||||||
context: Containerfile
|
from_secret: registry_token
|
||||||
username:
|
commands:
|
||||||
from_secret: registry_username
|
# Login at the registry
|
||||||
password:
|
- podman login -u __token__ --password $registry_token
|
||||||
from_secret: registry_password
|
# Build the container image
|
||||||
|
- podman build --tag code.philo.ydns.eu/philorg/test-woodpecker-webapp:latest -tag code.philo.ydns.eu/philorg/test-woodpecker-webapp:$CI_COMMIT_SHA .
|
||||||
|
# Push the image
|
||||||
|
#- podman push --sign-by-sigstore-private-key ./key.private code.philo.ydns.eu/philorg/test-woodpecker-webapp/<image_name>:latest
|
||||||
|
- podman push code.philo.ydns.eu/philorg/test-woodpecker-webapp:latest
|
||||||
|
- podman push code.philo.ydns.eu/philorg/test-woodpecker-webapp:$CI_COMMIT_SHA
|
||||||
|
|
||||||
|
# container_build_release_push:
|
||||||
|
# #image: docker.io/maltegrosse/woodpecker-buildah:0.0.12
|
||||||
|
# image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
||||||
|
# settings:
|
||||||
|
# registry: code.philo.ydns.eu
|
||||||
|
# repository: philorg/test-woodpecker-webapp
|
||||||
|
# tags: ${CI_COMMIT_SHA}
|
||||||
|
# architectures: amd64
|
||||||
|
# context: Containerfile
|
||||||
|
# username:
|
||||||
|
# from_secret: registry_username
|
||||||
|
# password:
|
||||||
|
# from_secret: registry_password
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue