All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
40 lines
932 B
YAML
40 lines
932 B
YAML
when:
|
|
- event: tag
|
|
|
|
|
|
steps:
|
|
build:
|
|
image: golang:1.22.5-alpine3.20
|
|
commands:
|
|
- GOPATH=/woodpecker/go
|
|
- cd src/udi
|
|
- go mod tidy
|
|
- go build -a -installsuffix nocgo -o udi main.go
|
|
- cp udi ../..
|
|
|
|
dockerize:
|
|
image: plugins/kaniko
|
|
settings:
|
|
repo: ${FORGE_NAME}/${CI_REPO}
|
|
registry:
|
|
from_secret: local_registry
|
|
tags: latest,${CI_COMMIT_TAG}
|
|
username:
|
|
from_secret: local_username
|
|
password:
|
|
from_secret: local_password
|
|
dockerfile: Dockerfile
|
|
|
|
deploy:
|
|
image: quay.io/wollud1969/k8s-admin-helper:0.4.1
|
|
environment:
|
|
KUBE_CONFIG_CONTENT:
|
|
from_secret: kube_config
|
|
GPG_PASSPHRASE:
|
|
from_secret: gpg_passphrase
|
|
commands:
|
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
|
- export KUBECONFIG=/tmp/kubeconfig
|
|
- ./deployment/deploy.sh
|