mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
chore: update delivery.yaml to new format
This commit is contained in:
parent
cca3e724c7
commit
7bbde7c4d4
@ -1,19 +1,15 @@
|
|||||||
build_steps:
|
version: "2017-09-20"
|
||||||
- desc: Install docker
|
pipeline:
|
||||||
cmd: |
|
- id: build
|
||||||
apt-get update
|
type: script
|
||||||
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
|
commands:
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
- desc: Build and push Docker image
|
||||||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
cmd: |
|
||||||
apt-get update
|
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
|
||||||
apt-get install -y docker-ce
|
RELEASE_VERSION=$(git describe --tags --always --dirty)
|
||||||
- desc: Build and push docker image
|
IMAGE=registry-write.opensource.zalan.do/teapot/external-dns:${RELEASE_VERSION}
|
||||||
cmd: |
|
else
|
||||||
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
|
IMAGE=registry-write.opensource.zalan.do/teapot/external-dns-test:${CDP_BUILD_VERSION}
|
||||||
RELEASE_VERSION=$(git describe --tags --always --dirty)
|
fi
|
||||||
IMAGE=registry-write.opensource.zalan.do/teapot/external-dns:${RELEASE_VERSION}
|
docker build --squash --tag "$IMAGE" .
|
||||||
else
|
docker push "$IMAGE"
|
||||||
IMAGE=registry-write.opensource.zalan.do/teapot/external-dns-test:${CDP_BUILD_VERSION}
|
|
||||||
fi
|
|
||||||
docker build --squash --tag "$IMAGE" .
|
|
||||||
docker push "$IMAGE"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user