-
Notifications
You must be signed in to change notification settings - Fork 17
/
cloudbuild.yaml
29 lines (29 loc) · 996 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
steps:
- name: gcr.io/cloud-builders/gsutil
entrypoint: "tar"
args: ["-zcf", "letsencrypt.tar.gz", "--files-from=/dev/null"]
- name: gcr.io/cloud-builders/gsutil
args: ["cp", "-n", "letsencrypt.tar.gz", "gs://${_CACHE_BUCKET}/letsencrypt.tar.gz"]
- name: gcr.io/cloud-builders/gsutil
args: ["cp", "gs://${_CACHE_BUCKET}/letsencrypt.tar.gz", "letsencrypt.tar.gz"]
- name: "certbot/dns-google"
entrypoint: "./gcp-le-renew.sh"
args: [
"certonly",
"--dns-google-credentials", "${_SA_KEY_FILE}",
"--agree-tos", "-m", "${_EMAIL}",
"--non-interactive",
"--dns-google",
"--dns-google-propagation-seconds", "90",
"--domain", "${_DOMAIN}",
"--domain", "*.${_DOMAIN}"
]
- name: gcr.io/cloud-builders/gsutil
args: ["cp", "letsencrypt.tar.gz", "gs://${_CACHE_BUCKET}/letsencrypt.tar.gz"]
- name: "gcr.io/cloud-builders/gcloud"
entrypoint: "./gcp-ssl-update.sh"
args: [
"${_DOMAIN}",
"${_FRONT_END_NAME_IPV4}",
"${_FRONT_END_NAME_IPV6}"
]