mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-31 23:36:57 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# ATCR Release Pipeline for Tangled.org
|
|
# Triggers on version tags and builds cross-platform binaries using buildah
|
|
|
|
when:
|
|
- event: ["push"]
|
|
tag: ["v*"]
|
|
|
|
engine: kubernetes
|
|
image: quay.io/buildah/stable:latest
|
|
architecture: amd64
|
|
|
|
environment:
|
|
IMAGE_REGISTRY: atcr.io
|
|
IMAGE_USER: atcr.io
|
|
|
|
steps:
|
|
- name: Login to registry
|
|
command: |
|
|
echo "${APP_PASSWORD}" | buildah login \
|
|
-u "${IMAGE_USER}" \
|
|
--password-stdin \
|
|
${IMAGE_REGISTRY}
|
|
|
|
- name: Build and push AppView image
|
|
command: |
|
|
buildah bud \
|
|
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/appview:${TANGLED_REF_NAME} \
|
|
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/appview:latest \
|
|
--file ./Dockerfile.appview \
|
|
.
|
|
|
|
buildah push \
|
|
${IMAGE_REGISTRY}/${IMAGE_USER}/appview:latest
|
|
|
|
- name: Build and push Hold image
|
|
command: |
|
|
buildah bud \
|
|
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/hold:${TANGLED_REF_NAME} \
|
|
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/hold:latest \
|
|
--file ./Dockerfile.hold \
|
|
.
|
|
|
|
buildah push \
|
|
${IMAGE_REGISTRY}/${IMAGE_USER}/hold:latest
|