Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e2eb993042 | |||
| 8867aa39a4 |
@@ -1,3 +1,6 @@
|
||||
when:
|
||||
event: [tag]
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: plugins/kaniko
|
||||
@@ -11,8 +14,6 @@ steps:
|
||||
password:
|
||||
from_secret: container_registry_password
|
||||
dockerfile: Dockerfile
|
||||
when:
|
||||
- event: tag
|
||||
|
||||
deploy:
|
||||
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||
@@ -23,7 +24,5 @@ steps:
|
||||
- export IMAGE_TAG=$CI_COMMIT_SHA
|
||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||
- export KUBECONFIG=/tmp/kubeconfig
|
||||
- ./deployment/deploy.sh
|
||||
when:
|
||||
- event: tag
|
||||
- ./deploy.sh
|
||||
|
||||
|
||||
@@ -8,9 +8,6 @@ fi
|
||||
|
||||
IMAGE_NAME=gitea.hottis.de/deployments/syslog-ng-server
|
||||
NAMESPACE=syslog-ng
|
||||
DEPLOYMENT_DIR=$PWD/deployment
|
||||
|
||||
pushd $DEPLOYMENT_DIR > /dev/null
|
||||
|
||||
kubectl create namespace $NAMESPACE \
|
||||
--dry-run=client \
|
||||
@@ -18,9 +15,8 @@ kubectl create namespace $NAMESPACE \
|
||||
kubectl -f - apply
|
||||
|
||||
|
||||
cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \
|
||||
cat deploy-yml.tmpl | \
|
||||
sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \
|
||||
kubectl apply -f - -n $NAMESPACE
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user