From 5142c39a8e32f9831282efdca7edde4568416f8b Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Fri, 8 Feb 2019 01:07:15 +0200 Subject: [PATCH] Add arm64 and amd64 Drone pipelines --- .drone.yml | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 75 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index a8cc0e3..08e3938 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,73 @@ +--- +kind: pipeline +name: linux-amd64 + +platform: + os: linux + arch: amd64 + +steps: + - name: build + image: plugins/docker:linux-amd64 + settings: + dry_run: true + dockerfile: Dockerfile.ci + repo: stefanprodan/podinfo + tag: linux-amd64 + when: + event: + - push + - pull_request + + - name: push-commit + image: plugins/docker:linux-amd64 + settings: + dockerfile: Dockerfile.arm + repo: stefanprodan/podinfo + tag: "amd64-${DRONE_COMMIT_SHA:0:8}" + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + when: + branch: + - master + +--- +kind: pipeline +name: linux-arm64 + +platform: + os: linux + arch: arm64 + +steps: + - name: build + image: plugins/docker:linux-arm64 + settings: + dry_run: true + dockerfile: Dockerfile.arm + repo: stefanprodan/podinfo + tag: linux-arm64 + when: + event: + - push + - pull_request + + - name: push-commit + image: plugins/docker:linux-arm64 + settings: + dockerfile: Dockerfile.arm + repo: stefanprodan/podinfo + tag: "arm64-${DRONE_COMMIT_SHA:0:8}" + username: + from_secret: DOCKER_USERNAME + password: + from_secret: DOCKER_PASSWORD + when: + branch: + - master + --- kind: pipeline name: linux-arm @@ -12,23 +82,23 @@ steps: settings: dry_run: true dockerfile: Dockerfile.arm - repo: stefanprodan/podinfo-arm + repo: stefanprodan/podinfo tag: linux-arm when: event: - push - pull_request -- name: push +- name: push-commit image: plugins/docker:linux-arm settings: dockerfile: Dockerfile.arm - repo: stefanprodan/podinfo-arm - tag: "${DRONE_COMMIT_SHA:0:8}" + repo: stefanprodan/podinfo + tag: "arm-${DRONE_COMMIT_SHA:0:8}" username: from_secret: DOCKER_USERNAME password: from_secret: DOCKER_PASSWORD when: branch: - - master \ No newline at end of file + - master