From ad42b9f847d2fad95219da7a5407b4381c2821bd Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Feb 2021 20:40:52 +0100 Subject: [PATCH] ci: always pull version pinned images --- .drone.jsonnet | 5 ++++- .drone.yml | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 6b1f805..9412db3 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -41,6 +41,7 @@ local PipelineBuildContainer(arch='amd64') = { { name: 'dryrun', image: 'thegeeklab/drone-docker-buildx:20', + pull: 'always', settings: { dry_run: true, dockerfile: 'Dockerfile.' + std.split(arch, '_')[0], @@ -58,7 +59,8 @@ local PipelineBuildContainer(arch='amd64') = { }, { name: 'publish-dockerhub', - image: 'thegeeklab/drone-docker-buildx', + image: 'thegeeklab/drone-docker-buildx:20', + pull: 'always', settings: { dockerfile: 'Dockerfile.' + std.split(arch, '_')[0], repo: 'thegeeklab/${DRONE_REPO_NAME}', @@ -73,6 +75,7 @@ local PipelineBuildContainer(arch='amd64') = { { name: 'publish-quay', image: 'thegeeklab/drone-docker-buildx:20', + pull: 'always', settings: { dockerfile: 'Dockerfile.' + std.split(arch, '_')[0], registry: 'quay.io', diff --git a/.drone.yml b/.drone.yml index 52245bc..dfd568c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,6 +37,7 @@ steps: DOCKER_AUTOTAG_VERSION: ${DRONE_TAG} - name: dryrun + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.amd64 @@ -55,7 +56,8 @@ steps: - tags - name: publish-dockerhub - image: thegeeklab/drone-docker-buildx + pull: always + image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.amd64 password: @@ -71,6 +73,7 @@ steps: - tags - name: publish-quay + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.amd64 @@ -115,6 +118,7 @@ steps: DOCKER_AUTOTAG_VERSION: ${DRONE_TAG} - name: dryrun + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm64 @@ -133,7 +137,8 @@ steps: - tags - name: publish-dockerhub - image: thegeeklab/drone-docker-buildx + pull: always + image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm64 password: @@ -149,6 +154,7 @@ steps: - tags - name: publish-quay + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm64 @@ -193,6 +199,7 @@ steps: DOCKER_AUTOTAG_VERSION: ${DRONE_TAG} - name: dryrun + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm @@ -211,7 +218,8 @@ steps: - tags - name: publish-dockerhub - image: thegeeklab/drone-docker-buildx + pull: always + image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm password: @@ -227,6 +235,7 @@ steps: - tags - name: publish-quay + pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.arm @@ -346,6 +355,6 @@ depends_on: --- kind: signature -hmac: b62b48151b2d28bd01c00b5cd43d37bfa681c75a235a9718eb2d5d93f0aa4e2a +hmac: 5ba92b782daeae19415d7cecc8bcd0027f539c7e3c2c97794fba97ef8352f331 ...