CI/Drone: quote all usages of DRONE_TAG variable to prevent yaml parsing errors if it's empty/unset
This commit is contained in:
parent
afd2bfd724
commit
cd3a51755c
22
.drone.yml
22
.drone.yml
@ -42,7 +42,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: golang:1.14
|
image: golang:1.14
|
||||||
environment:
|
environment:
|
||||||
GIT_TAG: ${DRONE_TAG}
|
GIT_TAG: "${DRONE_TAG}"
|
||||||
commands:
|
commands:
|
||||||
- make ci-setup
|
- make ci-setup
|
||||||
- make build-cross
|
- make build-cross
|
||||||
@ -180,7 +180,7 @@ steps:
|
|||||||
repo: rancher/k3d-proxy
|
repo: rancher/k3d-proxy
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-amd64
|
- latest-linux-amd64
|
||||||
- ${DRONE_TAG}-linux-amd64
|
- "${DRONE_TAG}-linux-amd64"
|
||||||
dockerfile: proxy/Dockerfile
|
dockerfile: proxy/Dockerfile
|
||||||
context: proxy/
|
context: proxy/
|
||||||
username:
|
username:
|
||||||
@ -215,7 +215,7 @@ steps:
|
|||||||
repo: rancher/k3d-proxy
|
repo: rancher/k3d-proxy
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-arm
|
- latest-linux-arm
|
||||||
- ${DRONE_TAG}-linux-arm
|
- "${DRONE_TAG}-linux-arm"
|
||||||
dockerfile: proxy/Dockerfile
|
dockerfile: proxy/Dockerfile
|
||||||
context: proxy/
|
context: proxy/
|
||||||
username:
|
username:
|
||||||
@ -250,7 +250,7 @@ steps:
|
|||||||
repo: rancher/k3d-proxy
|
repo: rancher/k3d-proxy
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-arm64
|
- latest-linux-arm64
|
||||||
- ${DRONE_TAG}-linux-arm64
|
- "${DRONE_TAG}-linux-arm64"
|
||||||
dockerfile: proxy/Dockerfile
|
dockerfile: proxy/Dockerfile
|
||||||
context: proxy/
|
context: proxy/
|
||||||
username:
|
username:
|
||||||
@ -286,8 +286,8 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
target: rancher/k3d-proxy:${DRONE_TAG}
|
target: "rancher/k3d-proxy:${DRONE_TAG}"
|
||||||
template: rancher/k3d-proxy:${DRONE_TAG}-OS-ARCH
|
template: "rancher/k3d-proxy:${DRONE_TAG}-OS-ARCH"
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm
|
- linux/arm
|
||||||
@ -326,7 +326,7 @@ steps:
|
|||||||
repo: rancher/k3d-tools
|
repo: rancher/k3d-tools
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-amd64
|
- latest-linux-amd64
|
||||||
- ${DRONE_TAG}-linux-amd64
|
- "${DRONE_TAG}-linux-amd64"
|
||||||
dockerfile: tools/Dockerfile
|
dockerfile: tools/Dockerfile
|
||||||
context: tools/
|
context: tools/
|
||||||
username:
|
username:
|
||||||
@ -361,7 +361,7 @@ steps:
|
|||||||
repo: rancher/k3d-tools
|
repo: rancher/k3d-tools
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-arm
|
- latest-linux-arm
|
||||||
- ${DRONE_TAG}-linux-arm
|
- "${DRONE_TAG}-linux-arm"
|
||||||
dockerfile: tools/Dockerfile
|
dockerfile: tools/Dockerfile
|
||||||
context: tools/
|
context: tools/
|
||||||
username:
|
username:
|
||||||
@ -395,7 +395,7 @@ steps:
|
|||||||
repo: rancher/k3d-tools
|
repo: rancher/k3d-tools
|
||||||
tags:
|
tags:
|
||||||
- latest-linux-arm64
|
- latest-linux-arm64
|
||||||
- ${DRONE_TAG}-linux-arm64
|
- "${DRONE_TAG}-linux-arm64"
|
||||||
dockerfile: tools/Dockerfile
|
dockerfile: tools/Dockerfile
|
||||||
context: tools/
|
context: tools/
|
||||||
username:
|
username:
|
||||||
@ -430,8 +430,8 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
target: rancher/k3d-tools:${DRONE_TAG}
|
target: "rancher/k3d-tools:${DRONE_TAG}"
|
||||||
template: rancher/k3d-tools:${DRONE_TAG}-OS-ARCH
|
template: "rancher/k3d-tools:${DRONE_TAG}-OS-ARCH"
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm
|
- linux/arm
|
||||||
|
Loading…
Reference in New Issue
Block a user