62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
kind: pipeline
|
|
name: default
|
|
type: docker
|
|
|
|
platform:
|
|
os: linux
|
|
arch: ''
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
image: thetadev256/ucast-dev
|
|
volumes:
|
|
- name: cache
|
|
path: /root/.cache
|
|
commands:
|
|
- poetry install
|
|
- poetry run invoke reset
|
|
|
|
- name: lint
|
|
image: thetadev256/ucast-dev
|
|
volumes:
|
|
- name: cache
|
|
path: /root/.cache
|
|
commands:
|
|
- poetry run invoke lint
|
|
depends_on:
|
|
- install dependencies
|
|
|
|
- name: test
|
|
image: thetadev256/ucast-dev
|
|
volumes:
|
|
- name: cache
|
|
path: /root/.cache
|
|
commands:
|
|
- poetry run invoke test
|
|
depends_on:
|
|
- install dependencies
|
|
|
|
# - name: build container
|
|
# image: quay.io/buildah/stable
|
|
# when:
|
|
# event:
|
|
# - tag
|
|
# commands:
|
|
# - buildah login -u $DOCKER_USER -p $DOCKER_PASS -- $DOCKER_REGISTRY
|
|
# - buildah manifest create ucast
|
|
# - buildah bud --tag code.thetadev.de/hsa/ucast:latest --manifest ucast --arch amd64 --build-arg TARGETPLATFORM=linux/amd64 -f deploy/Dockerfile .
|
|
# - buildah bud --tag code.thetadev.de/hsa/ucast:latest --manifest ucast --arch arm64 --build-arg TARGETPLATFORM=linux/arm64 -f deploy/Dockerfile .
|
|
# - buildah manifest push --all ucast docker://code.thetadev.de/hsa/ucast:latest
|
|
# environment:
|
|
# DOCKER_REGISTRY:
|
|
# from_secret: docker_registry
|
|
# DOCKER_USER:
|
|
# from_secret: docker_username
|
|
# DOCKER_PASS:
|
|
# from_secret: docker_password
|
|
# depends_on:
|
|
# - test
|
|
|
|
volumes:
|
|
- name: cache
|
|
temp: { }
|