From 85da0b419c19da97f8310f9200b48d7ae68f2e23 Mon Sep 17 00:00:00 2001 From: Sean OMeara Date: Wed, 30 Nov 2022 10:29:33 +0100 Subject: [PATCH] drone config --- .drone.jsonnet | 74 +- .drone.yml | 2565 +------------------------------------------ ci/Dockerfile.deb | 2 +- ci/Dockerfile.none | 5 + ci/Dockerfile.rpm | 2 +- ci/scripts/build.sh | 96 +- 6 files changed, 124 insertions(+), 2620 deletions(-) create mode 100644 ci/Dockerfile.none diff --git a/.drone.jsonnet b/.drone.jsonnet index 30271d99e..eae15501b 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,50 +1,7 @@ +local registry = "084037375216.dkr.ecr.us-east-2.amazonaws.com"; local targets = [ - // - // Render these into .drone.yaml by running "make drone" - // - { "os": "linux", "name": "el9", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "el8", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "el7", "isas": [ "amd64", "ppc64le"], "events": [ "tag" ] }, - { "os": "linux", "name": "el6", "isas": [ "amd64" ], "events": [ "tag" ] }, - { "os": "linux", "name": "amzn2", "isas": [ "amd64", "arm64" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc37", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc36", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc35", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "jammy", "isas": [ "amd64", "arm64", "armv7", "riscv64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "focal", "isas": [ "amd64", "arm64", "armv7", "riscv64", "ppc64le" ], "events": [ "tag" ] }, - { "os": "linux", "name": "bionic", "isas": [ "amd64", "arm64", "386", "ppc64le", "s390x" ], "events": ["tag" ] }, - { "os": "linux", "name": "xenial", "isas": [ "amd64", "arm64", "386" ], "events": [ "tag" ] }, - { "os": "linux", "name": "sid", "isas": [ "386", "amd64", "arm64", "riscv64", "mips64le", "ppc64le", "s390x" ], "events": [ "push", "tag" ] }, - { "os": "linux", "name": "bookworm", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "bullseye", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "buster", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "stretch", "isas": [ "amd64", "arm64", "386" ], "events": [ "tag" ] }, - // { "os": "windows", "name": "win2k19", "isas": [ "amd64" ], "events": ["push", "tag" ] } -]; - -local master_targets = [ - // - // Render these into .drone.yaml by running "make drone" - // - { "os": "linux", "name": "el9", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "el8", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "el7", "isas": [ "amd64", "ppc64le"], "events": [ "tag" ] }, - { "os": "linux", "name": "el6", "isas": [ "amd64" ], "events": [ "tag" ] }, - { "os": "linux", "name": "amzn2", "isas": [ "amd64", "arm64" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc37", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc36", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "fc35", "isas": [ "amd64", "arm64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "jammy", "isas": [ "amd64", "arm64", "armv7", "riscv64", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "focal", "isas": [ "amd64", "arm64", "armv7", "riscv64", "ppc64le" ], "events": [ "tag" ] }, - { "os": "linux", "name": "bionic", "isas": [ "amd64", "arm64", "386", "ppc64le", "s390x" ], "events": ["tag" ] }, - { "os": "linux", "name": "xenial", "isas": [ "amd64", "arm64", "386" ], "events": [ "tag" ] }, - { "os": "linux", "name": "sid", "isas": [ "386", "amd64", "arm64", "riscv64", "mips64le", "ppc64le", "s390x" ], "events": [ "push", "tag" ] }, - { "os": "linux", "name": "bookworm", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "bullseye", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "buster", "isas": [ "amd64", "arm64", "armv7", "386", "mips64le", "ppc64le", "s390x" ], "events": [ "tag" ] }, - { "os": "linux", "name": "stretch", "isas": [ "amd64", "arm64", "386" ], "events": [ "tag" ] }, - // { "os": "windows", "name": "win2k19", "isas": [ "amd64" ], "events": ["push", "tag" ] } + { "os": "linux", "name": "sid", "isas": [ "386", "armv7", "amd64", "arm64", "mips64le", "ppc64le", "s390x", "riscv64" ], "events": [ "push", "tag", "custom" ] }, ]; local Build(platform, os, isa, events) = { @@ -56,27 +13,18 @@ local Build(platform, os, isa, events) = { "steps": [ { "name": "build", - "image": "registry.sean.farm/honda-builder", - "commands": [ "./ci/scripts/build.sh " + platform + " " + isa + " " + "100.0.0+${DRONE_COMMIT_SHA:0:8}" + " " + "${DRONE_BUILD_EVENT}" ] - }, - { - "name": "list", - "image": "registry.sean.farm/honda-builder", - "commands": [ "ls -la " + platform ] + "image": registry + "/honda-builder", + "commands": [ + "aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin " + registry, + "./ci/scripts/build.sh " + platform + " " + isa + " " + "100.0.0+${DRONE_COMMIT_SHA:0:8}" + " " + "${DRONE_BUILD_EVENT}" + ] }, // { - // "name": "notify-mattermost", - // "image": "registry.sean.farm/mattermost-notify", - // "environment": { - // "token": { "from_secret": "mattermost-token" }, - // "host": { "from_secret": "mattermost-host" }, - // "channel": { "from_secret": "mattermost-channel" }, - // "maxRetry": 3, - // }, - // "when": { "status": [ "failure" ] } - // } + // "name": "list", + // "image": registry + "/honda-builder", + // "commands": [ "ls -la " + platform ] + // }, ], - "image_pull_secrets": [ "dockerconfigjson" ], [ if isa == "arm64" || isa == "armv7" then "platform" ]: { os: os, arch: "arm64" }, "trigger": { "event": events } }; diff --git a/.drone.yml b/.drone.yml index b2f91fe91..fc7643d45 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,1610 +1,66 @@ --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el9 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el9 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el9 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el9 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el9 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el9 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el9 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el9 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el9 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el9 s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el9 s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el9 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el8 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el8 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el8 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el8 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el8 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el8 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el8 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el8 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el8 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el8 s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el8 s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el8 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el7 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el7 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el7 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el7 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el7 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el7 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: el6 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh el6 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la el6 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: amzn2 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh amzn2 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la amzn2 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: amzn2 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh amzn2 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la amzn2 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc37 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc37 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc37 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc37 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc37 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc37 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc37 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc37 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc37 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc37 s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc37 s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc37 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc36 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc36 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc36 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc36 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc36 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc36 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc36 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc36 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc36 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc36 s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc36 s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc36 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc35 amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc35 amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc35 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc35 arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc35 arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc35 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc35 ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc35 ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc35 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: fc35 s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh fc35 s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la fc35 - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy armv7 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy riscv64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy riscv64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: jammy s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh jammy s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la jammy - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: focal amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh focal amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la focal - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: focal arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh focal arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la focal - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: focal armv7 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh focal armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la focal - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: focal riscv64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh focal riscv64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la focal - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: focal ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh focal ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la focal - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bionic amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bionic amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bionic - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bionic arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bionic arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bionic - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bionic 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bionic 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bionic - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bionic ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bionic ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bionic - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bionic s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bionic s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bionic - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: xenial amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh xenial amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la xenial - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: xenial arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh xenial arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la xenial - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: xenial 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh xenial 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la xenial - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid 386 build pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom +type: docker +--- +clone: + depth: 1 +kind: pipeline +name: sid armv7 build +platform: + arch: arm64 + os: linux +pull: always +steps: +- commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com + - ./ci/scripts/build.sh sid armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder + name: build +trigger: + event: + - push + - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid amd64 build pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid arm64 build platform: @@ -1613,1005 +69,90 @@ platform: pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: sid riscv64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh sid riscv64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - push - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid mips64le build pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid mips64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid ppc64le build pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline name: sid s390x build pull: always steps: - commands: + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com - ./ci/scripts/build.sh sid s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la sid - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: - push - tag + - custom type: docker --- clone: depth: 1 -image_pull_secrets: -- dockerconfigjson kind: pipeline -name: bookworm amd64 build +name: sid riscv64 build pull: always steps: - commands: - - ./ci/scripts/build.sh bookworm amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin + 084037375216.dkr.ecr.us-east-2.amazonaws.com + - ./ci/scripts/build.sh sid riscv64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} + image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm armv7 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm mips64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm mips64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bookworm s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bookworm s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bookworm - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye armv7 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye mips64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye mips64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: bullseye s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh bullseye s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la bullseye - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster armv7 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster mips64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster mips64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster ppc64le build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: buster s390x build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh buster s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la buster - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: stretch amd64 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh stretch amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la stretch - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: stretch arm64 build -platform: - arch: arm64 - os: linux -pull: always -steps: -- commands: - - ./ci/scripts/build.sh stretch arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la stretch - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure -trigger: - event: - - tag -type: docker ---- -clone: - depth: 1 -image_pull_secrets: -- dockerconfigjson -kind: pipeline -name: stretch 386 build -pull: always -steps: -- commands: - - ./ci/scripts/build.sh stretch 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT} - image: registry.sean.farm/honda-builder - name: build -- commands: - - ls -la stretch - image: registry.sean.farm/honda-builder - name: list -- environment: - channel: - from_secret: mattermost-channel - host: - from_secret: mattermost-host - maxRetry: 3 - token: - from_secret: mattermost-token - image: registry.sean.farm/mattermost-notify - name: notify-mattermost - when: - status: - - failure trigger: event: + - push - tag + - custom type: docker diff --git a/ci/Dockerfile.deb b/ci/Dockerfile.deb index 91b383a6a..151bca397 100644 --- a/ci/Dockerfile.deb +++ b/ci/Dockerfile.deb @@ -1,5 +1,5 @@ ARG PLATFORM -FROM registry.sean.farm/${PLATFORM}-builder as stage +FROM 084037375216.dkr.ecr.us-east-2.amazonaws.com/${PLATFORM}-builder as stage WORKDIR /work/build COPY . . RUN make debian diff --git a/ci/Dockerfile.none b/ci/Dockerfile.none new file mode 100644 index 000000000..bee0128f7 --- /dev/null +++ b/ci/Dockerfile.none @@ -0,0 +1,5 @@ +ARG PLATFORM +FROM 084037375216.dkr.ecr.us-east-2.amazonaws.com/${PLATFORM}-builder as stage +WORKDIR /work +COPY . . +RUN make diff --git a/ci/Dockerfile.rpm b/ci/Dockerfile.rpm index 9969be05e..0965148bc 100644 --- a/ci/Dockerfile.rpm +++ b/ci/Dockerfile.rpm @@ -1,5 +1,5 @@ ARG PLATFORM -FROM registry.sean.farm/${PLATFORM}-builder as stage +FROM 084037375216.dkr.ecr.us-east-2.amazonaws.com/${PLATFORM}-builder as stage WORKDIR /root/rpmbuild/BUILD COPY . . RUN make redhat diff --git a/ci/scripts/build.sh b/ci/scripts/build.sh index e6aee6bc6..bc28e42f2 100755 --- a/ci/scripts/build.sh +++ b/ci/scripts/build.sh @@ -8,6 +8,9 @@ export VERSION=$3 export EVENT=$4 case $PLATFORM in + sid) + export PKGFMT=none + ;; el*|fc*|amzn*) export PKGFMT=rpm ;; @@ -15,22 +18,21 @@ case $PLATFORM in export PKGFMT=deb esac -# OSX -# x86_64-apple-darwin -# aarch64-apple-darwin +# +# Allow user to drop in custom Dockerfile for PLATFORM +# -# Windows -# x86_64-pc-windows-msvc -# i686-pc-windows-msvc -# aarch64-pc-windows-msvc +if [ -f "ci/Dockerfile.${PLATFORM}" ]; then + export DOCKERFILE="ci/Dockerfile.${PLATFORM}" +else + export DOCKERFILE="ci/Dockerfile.${PKGFMT}" +fi -# Linux -# i686-unknown-linux-gnu -# x86_64-unknown-linux-gnu -# arm-unknown-linux-gnueabi ? -# arm-unknown-linux-gnueabihf ? -# armv7-unknown-linux-gnueabihf -# +# +# Rust sometimes gets confused about where it's running. +# Normally, the build images will have Rust pre-baked. +# Pass RUST_TRIPLET for convenience when using a custom Dockerfile +# case $ZT_ISA in 386) @@ -41,13 +43,9 @@ case $ZT_ISA in export DOCKER_ARCH=amd64 export RUST_TRIPLET=x86_64-unknown-linux-gnu ;; - armv6) - export DOCKER_ARCH=arm/v6 - export RUST_TRIPLET=arm-unknown-linux-gnueabi - ;; - armv7) + armv7) export DOCKER_ARCH=arm/v7 - export RUST_TRIPLET=arm-unknown-linux-gnueabihf + export RUST_TRIPLET=armv7-unknown-linux-gnueabihf ;; arm64) export DOCKER_ARCH=arm64/v8 @@ -60,7 +58,7 @@ case $ZT_ISA in ppc64le) export DOCKER_ARCH=ppc64le export RUST_TRIPLET=powerpc64le-unknown-linux-gnu - ;; + ;; mips64le) export DOCKER_ARCH=mips64le export RUST_TRIPLET=mips64el-unknown-linux-gnuabi64 @@ -69,17 +67,15 @@ case $ZT_ISA in export DOCKER_ARCH=s390x export RUST_TRIPLET=s390x-unknown-linux-gnu ;; - *) + *) echo "ERROR: could not determine architecture settings. PLEASE FIX ME" exit 1 ;; esac -if [ -f "ci/Dockerfile.${PLATFORM}" ]; then - export DOCKERFILE="ci/Dockerfile.${PLATFORM}" -else - export DOCKERFILE="ci/Dockerfile.${PKGFMT}" -fi +# +# Print debug info +# echo "#~~~~~~~~~~~~~~~~~~~~" echo "$0 variables:" @@ -94,23 +90,37 @@ echo "PWD: ${PWD}" echo "DOCKERFILE: ${DOCKERFILE}" echo "#~~~~~~~~~~~~~~~~~~~~" -if [ ${EVENT} == "push" ]; then -make munge_rpm zerotier-one.spec VERSION=${VERSION} -make munge_deb debian/changelog VERSION=${VERSION} +# +# Munge RPM and Deb +# + +if [ ${PKGFMT} != "none" ] && [ ${EVENT} != "tag" ]; then + make munge_rpm zerotier-one.spec VERSION=${VERSION} + make munge_deb debian/changelog VERSION=${VERSION} fi -export DOCKER_BUILDKIT=1 -docker run --privileged --rm tonistiigi/binfmt --install all +# +# Assemble buildx arguments +# -# docker pull --platform linux/${DOCKER_ARCH} registry.sean.farm/${PLATFORM}-builder +build_args=( + --no-cache + --build-arg PLATFORM=${PLATFORM} + --build-arg RUST_TRIPLET=${RUST_TRIPLET} + --build-arg DOCKER_ARCH=${DOCKER_ARCH} + --platform linux/${DOCKER_ARCH} + -f ${DOCKERFILE} + -t build + . +) -docker buildx build \ - --build-arg PLATFORM="${PLATFORM}" \ - --build-arg RUST_TRIPLET="${RUST_TRIPLET}" \ - --build-arg DOCKER_ARCH="${DOCKER_ARCH}" \ - --platform linux/${DOCKER_ARCH} \ - -f ${DOCKERFILE} \ - -t build \ - . \ - --output type=local,dest=. \ - --target export +if [ ${PKGFMT} != "none" ]; then + build_args+=("--output type=local,dest=.") + build_args+=("--target export") +fi + +# +# Do build +# + +docker buildx build ${build_args[@]}