update pipeline to use raw ip instead of name due to dns issue
This commit is contained in:
parent
254cf13388
commit
d73870e4b3
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- "apk update && apk add jq curl git git-crypt"
|
- "apk update && apk add jq curl git git-crypt"
|
||||||
- |
|
- |
|
||||||
curl -k https://kubernetes:6443/api/v1/namespaces/drone/configmaps/git-crypt-key -H "Authorization:Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | jq -r .data.key | base64 -d > /tmp/key
|
curl -k https://10.0.20.100:6443/api/v1/namespaces/drone/configmaps/git-crypt-key -H "Authorization:Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | jq -r .data.key | base64 -d > /tmp/key
|
||||||
- "git-crypt unlock /tmp/key"
|
- "git-crypt unlock /tmp/key"
|
||||||
- name: Terraform apply
|
- name: Terraform apply
|
||||||
image: hashicorp/terraform:latest
|
image: hashicorp/terraform:latest
|
||||||
|
|
@ -87,7 +87,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- "apk update && apk add jq curl git git-crypt"
|
- "apk update && apk add jq curl git git-crypt"
|
||||||
- |
|
- |
|
||||||
curl -k https://kubernetes:6443/api/v1/namespaces/drone/configmaps/git-crypt-key -H "Authorization:Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | jq -r .data.key | base64 -d > /tmp/key
|
curl -k https://10.0.20.100:6443/api/v1/namespaces/drone/configmaps/git-crypt-key -H "Authorization:Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" | jq -r .data.key | base64 -d > /tmp/key
|
||||||
- "git-crypt unlock /tmp/key"
|
- "git-crypt unlock /tmp/key"
|
||||||
- name: Run renew script
|
- name: Run renew script
|
||||||
image: alpine
|
image: alpine
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue