TUN-6825: Fix cloudflared:version images require arch hyphens
Once we introduced multi arch docker images, pinning cloudflared versions required suffixing -(arm64/amd64) to the cloudflared:version image tag. This change should fix that by adding specific versions to the cloudflare docker build cycle
This commit is contained in:
parent
6be36fa2c5
commit
e89bceca5e
|
@ -2,8 +2,7 @@ images:
|
||||||
- name: cloudflared
|
- name: cloudflared
|
||||||
dockerfile: Dockerfile.$ARCH
|
dockerfile: Dockerfile.$ARCH
|
||||||
context: .
|
context: .
|
||||||
versions:
|
version_file: versions
|
||||||
- latest
|
|
||||||
registries:
|
registries:
|
||||||
- name: docker.io/cloudflare
|
- name: docker.io/cloudflare
|
||||||
user: env:DOCKER_USER
|
user: env:DOCKER_USER
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -131,6 +131,10 @@ endif
|
||||||
container:
|
container:
|
||||||
docker build --build-arg=TARGET_ARCH=$(TARGET_ARCH) --build-arg=TARGET_OS=$(TARGET_OS) -t cloudflare/cloudflared-$(TARGET_OS)-$(TARGET_ARCH):"$(VERSION)" .
|
docker build --build-arg=TARGET_ARCH=$(TARGET_ARCH) --build-arg=TARGET_OS=$(TARGET_OS) -t cloudflare/cloudflared-$(TARGET_OS)-$(TARGET_ARCH):"$(VERSION)" .
|
||||||
|
|
||||||
|
.PHONY: generate-docker-version
|
||||||
|
generate-docker-version:
|
||||||
|
echo latest $(VERSION) > versions
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: vet
|
test: vet
|
||||||
ifndef CI
|
ifndef CI
|
||||||
|
|
|
@ -78,6 +78,12 @@ stretch: &stretch
|
||||||
# same logic as above, but for FIPS packages only
|
# same logic as above, but for FIPS packages only
|
||||||
- ./build-packages-fips.sh
|
- ./build-packages-fips.sh
|
||||||
- make github-release-built-pkgs
|
- make github-release-built-pkgs
|
||||||
|
generate-versions-file:
|
||||||
|
build_dir: *build_dir
|
||||||
|
builddeps:
|
||||||
|
- build-essential
|
||||||
|
post-cache:
|
||||||
|
- make generate-docker-version
|
||||||
build-deb:
|
build-deb:
|
||||||
build_dir: *build_dir
|
build_dir: *build_dir
|
||||||
builddeps: &build_deb_deps
|
builddeps: &build_deb_deps
|
||||||
|
|
Loading…
Reference in New Issue