55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
when:
|
|
- event: manual
|
|
- event: tag
|
|
|
|
#depends_on:
|
|
#- test
|
|
|
|
steps:
|
|
npm:
|
|
image: code.philo.ydns.eu/philorg/pnpm
|
|
environment:
|
|
ORG: philorg
|
|
REGISTRY_TOKEN:
|
|
from_secret: registry_token
|
|
commands:
|
|
- pnpm install --frozen-lockfile
|
|
- pnpm set "//code.philo.ydns.eu/api/packages/$ORG/npm/:_authToken=$REGISTRY_TOKEN"
|
|
- pnpm publish --no-git-checks
|
|
failure: ignore
|
|
|
|
build_publish:
|
|
image: quay.io/podman/stable:latest
|
|
# Caution: This image is built daily. It might fill up your image store quickly.
|
|
pull: true
|
|
# Fill in the trusted checkbox in Woodpecker's settings as well
|
|
privileged: true
|
|
environment:
|
|
registry: code.philo.ydns.eu
|
|
org: philorg
|
|
container_name: test-woodpecker-webapp
|
|
registry_token:
|
|
from_secret: registry_token
|
|
commands:
|
|
# Login at the registry
|
|
- podman login -u __token__ --password $registry_token $registry
|
|
# Build the container image
|
|
- podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_TAG .
|
|
# Push the image
|
|
#- podman push --sign-by-sigstore-private-key ./key.private code.philo.ydns.eu/$org/$container_name:latest
|
|
- podman push $registry/$org/$container_name:latest
|
|
- podman push $registry/$org/$container_name:$CI_COMMIT_TAG
|
|
|
|
# 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
|