package-cache/.woodpecker/docker.yml

20 lines
873 B
YAML
Raw Normal View History

2022-08-20 23:27:15 +00:00
---
pipeline:
build-images:
image: quay.io/podman/stable
privileged: true
commands:
- podman build --platform=linux/amd64,linux/arm64,linux/arm --manifest $CI_REPO_NAME -f Dockerfile .
- podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD git.worn.eu
- podman manifest push --all $CI_REPO_NAME git.worn.eu/$CI_REPO:git-$${CI_COMMIT_SHA::10}
- podman manifest push --all $CI_REPO_NAME git.worn.eu/$CI_REPO:ci-$CI_BUILD_NUMBER
- test -z "$CI_COMMIT_TAG" -a "$CI_COMMIT_BRANCH" == "$CI_REPO_DEFAULT_BRANCH" && podman manifest push --all $CI_REPO_NAME git.worn.eu/$CI_REPO:latest
- test -n "$CI_COMMIT_TAG" && podman manifest push --all $CI_REPO_NAME git.worn.eu/$CI_REPO:$${CI_COMMIT_TAG##v}
- echo Done
2022-08-20 23:27:15 +00:00
secrets:
- container_repo_username
- container_repo_password
depends_on:
- lint