universal-data-ingest/.woodpecker.yml

33 lines
867 B
YAML
Raw Normal View History

2023-12-04 14:22:16 +01:00
steps:
build:
image: plugins/kaniko
settings:
2024-02-07 22:35:15 +01:00
repo: ${FORGE_NAME}/${CI_REPO}
2023-12-04 14:22:16 +01:00
registry:
from_secret: container_registry
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: Dockerfile
when:
- event: [push, tag]
deploy:
image: portainer/kubectl-shell:latest
secrets:
- source: kube_config
target: KUBE_CONFIG_CONTENT
2023-12-19 11:50:22 +01:00
- source: encryption_key
target: ENCRYPTION_KEY
- source: secrets_checksum
target: MD5_CHECKSUM
2023-12-04 14:22:16 +01:00
commands:
2023-12-18 21:35:36 +01:00
- export IMAGE_TAG=$CI_COMMIT_TAG
2023-12-04 14:22:16 +01:00
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig
2023-12-18 21:35:36 +01:00
- ./deployment/deploy.sh
2023-12-04 14:22:16 +01:00
when:
- event: tag