From a79e8c5b816bd4ddc34bd75d0e2d9dec0717c321 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 8 Jan 2023 16:12:16 +0100 Subject: [PATCH] chore: remove support for arm32 (#203) BREAKING CHANGE: We dropped the arm32 platform support and builds. --- .drone.jsonnet | 41 ++++++----------- .drone.yml | 96 +++------------------------------------ docker/Dockerfile.arm | 26 ----------- docker/manifest-quay.tmpl | 6 --- docker/manifest.tmpl | 6 --- 5 files changed, 20 insertions(+), 155 deletions(-) delete mode 100644 docker/Dockerfile.arm diff --git a/.drone.jsonnet b/.drone.jsonnet index 4ab2fc9..261a751 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -198,38 +198,25 @@ local PipelineBuildPackage = { }; local PipelineBuildContainer(arch='amd64') = { - local build = if arch == 'arm' then [{ - name: 'build', - image: 'python:3.10-alpine', - commands: [ - 'apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo', - 'git fetch -tq', - 'pip install poetry poetry-dynamic-versioning -qq', - 'poetry build', - ], - environment: { - CARGO_NET_GIT_FETCH_WITH_CLI: true, - }, - }] else [{ - name: 'build', - image: 'python:3.11', - commands: [ - 'git fetch -tq', - 'pip install poetry poetry-dynamic-versioning -qq', - 'poetry build', - ], - }], - kind: 'pipeline', name: 'build-container-' + arch, platform: { os: 'linux', arch: arch, }, - steps: build + [ + steps: [ + { + name: 'build', + image: 'python:3.11', + commands: [ + 'git fetch -tq', + 'pip install poetry poetry-dynamic-versioning -qq', + 'poetry build', + ], + }, { name: 'dryrun', - image: 'thegeeklab/drone-docker:19', + image: 'thegeeklab/drone-docker-buildx:20', settings: { dry_run: true, dockerfile: 'docker/Dockerfile.' + arch, @@ -244,7 +231,7 @@ local PipelineBuildContainer(arch='amd64') = { }, { name: 'publish-dockerhub', - image: 'thegeeklab/drone-docker:19', + image: 'thegeeklab/drone-docker-buildx:20', settings: { auto_tag: true, auto_tag_suffix: arch, @@ -260,7 +247,7 @@ local PipelineBuildContainer(arch='amd64') = { }, { name: 'publish-quay', - image: 'thegeeklab/drone-docker:19', + image: 'thegeeklab/drone-docker-buildx:20', settings: { auto_tag: true, auto_tag_suffix: arch, @@ -373,7 +360,6 @@ local PipelineNotifications = { 'build-package', 'build-container-amd64', 'build-container-arm64', - 'build-container-arm', ], trigger: { ref: ['refs/heads/main', 'refs/tags/**'], @@ -388,6 +374,5 @@ local PipelineNotifications = { PipelineBuildPackage, PipelineBuildContainer(arch='amd64'), PipelineBuildContainer(arch='arm64'), - PipelineBuildContainer(arch='arm'), PipelineNotifications, ] diff --git a/.drone.yml b/.drone.yml index 32a9794..040d580 100644 --- a/.drone.yml +++ b/.drone.yml @@ -241,7 +241,7 @@ steps: - poetry build - name: dryrun - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: docker/Dockerfile.amd64 dry_run: true @@ -257,7 +257,7 @@ steps: - build - name: publish-dockerhub - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: auto_tag: true auto_tag_suffix: amd64 @@ -275,7 +275,7 @@ steps: - dryrun - name: publish-quay - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: auto_tag: true auto_tag_suffix: amd64 @@ -319,7 +319,7 @@ steps: - poetry build - name: dryrun - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: docker/Dockerfile.arm64 dry_run: true @@ -335,7 +335,7 @@ steps: - build - name: publish-dockerhub - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: auto_tag: true auto_tag_suffix: arm64 @@ -353,7 +353,7 @@ steps: - dryrun - name: publish-quay - image: thegeeklab/drone-docker:19 + image: thegeeklab/drone-docker-buildx:20 settings: auto_tag: true auto_tag_suffix: arm64 @@ -380,87 +380,6 @@ trigger: depends_on: - security ---- -kind: pipeline -name: build-container-arm - -platform: - os: linux - arch: arm - -steps: - - name: build - image: python:3.10-alpine - commands: - - apk add -Uq --no-cache build-base openssl-dev libffi-dev musl-dev python3-dev git cargo - - git fetch -tq - - pip install poetry poetry-dynamic-versioning -qq - - poetry build - environment: - CARGO_NET_GIT_FETCH_WITH_CLI: true - - - name: dryrun - image: thegeeklab/drone-docker:19 - settings: - dockerfile: docker/Dockerfile.arm - dry_run: true - password: - from_secret: docker_password - repo: thegeeklab/${DRONE_REPO_NAME} - username: - from_secret: docker_username - when: - ref: - - refs/pull/** - depends_on: - - build - - - name: publish-dockerhub - image: thegeeklab/drone-docker:19 - settings: - auto_tag: true - auto_tag_suffix: arm - dockerfile: docker/Dockerfile.arm - password: - from_secret: docker_password - repo: thegeeklab/${DRONE_REPO_NAME} - username: - from_secret: docker_username - when: - ref: - - refs/heads/main - - refs/tags/** - depends_on: - - dryrun - - - name: publish-quay - image: thegeeklab/drone-docker:19 - settings: - auto_tag: true - auto_tag_suffix: arm - dockerfile: docker/Dockerfile.arm - password: - from_secret: quay_password - registry: quay.io - repo: quay.io/thegeeklab/${DRONE_REPO_NAME} - username: - from_secret: quay_username - when: - ref: - - refs/heads/main - - refs/tags/** - depends_on: - - dryrun - -trigger: - ref: - - refs/heads/main - - refs/tags/** - - refs/pull/** - -depends_on: - - security - --- kind: pipeline name: notifications @@ -554,10 +473,9 @@ depends_on: - build-package - build-container-amd64 - build-container-arm64 - - build-container-arm --- kind: signature -hmac: 71fb68f540ff6b5a5f360a6b00b0115e40f9721ef3d0569f2f73bd0cf149c1eb +hmac: de7c72c6008cd41d5e21ab49e25330161a30396d7c0e4c66f9b401bbc9ca30cc ... diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm deleted file mode 100644 index 5110506..0000000 --- a/docker/Dockerfile.arm +++ /dev/null @@ -1,26 +0,0 @@ -FROM arm32v7/python:3.11-alpine@sha256:0caf84db963097ae8978d2f7fcfba2039f8296d99b65cace154f367bacd938d5 - -LABEL maintainer="Robert Kaussow " -LABEL org.opencontainers.image.authors="Robert Kaussow " -LABEL org.opencontainers.image.title="docker-autotag" -LABEL org.opencontainers.image.url="https://github.com/thegeeklab/docker-autotag" -LABEL org.opencontainers.image.source="https://github.com/thegeeklab/docker-autotag" -LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/docker-autotag" - -ENV PY_COLORS=1 -ENV TZ=UTC - -ADD dist/docker_autotag-*.whl / - -RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev && \ - apk --update add git && \ - pip install --upgrade --no-cache-dir pip && \ - pip install --no-cache-dir $(find / -name "docker_autotag-*.whl") && \ - apk del .build-deps && \ - rm -f docker_autotag-*.whl && \ - rm -rf /var/cache/apk/* && \ - rm -rf /root/.cache/ - -USER root -CMD [] -ENTRYPOINT ["/usr/local/bin/docker-autotag"] diff --git a/docker/manifest-quay.tmpl b/docker/manifest-quay.tmpl index 1f95517..5d8f626 100644 --- a/docker/manifest-quay.tmpl +++ b/docker/manifest-quay.tmpl @@ -16,9 +16,3 @@ manifests: architecture: arm64 os: linux variant: v8 - - - image: quay.io/thegeeklab/docker-autotag:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm - platform: - architecture: arm - os: linux - variant: v7 diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl index c1bca4d..d277416 100644 --- a/docker/manifest.tmpl +++ b/docker/manifest.tmpl @@ -16,9 +16,3 @@ manifests: architecture: arm64 os: linux variant: v8 - - - image: thegeeklab/docker-autotag:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm - platform: - architecture: arm - os: linux - variant: v7