From 90ba845b2105f34355e665e43525b27b9bb6a645 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 22 Jun 2020 11:55:03 +0000 Subject: [PATCH] Add docker build pipelines for arm and amd64 (#164) Only run docker pipelines when pushing to master Add docker build pipelines for arm and amd64 Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/164 --- .drone.yml | 128 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 102 insertions(+), 26 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3de95046..20d5710d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -71,23 +71,10 @@ steps: target: /frontend/ depends_on: [ static ] - # Build the docker image and push it to docker hub - - name: docker - image: plugins/docker - pull: true - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: vikunja/frontend - auto_tag: true - - name: telegram image: appleboy/drone-telegram depends_on: - release - - docker settings: token: from_secret: TELEGRAM_TOKEN @@ -151,23 +138,10 @@ steps: target: /frontend/ depends_on: [ static ] - # Build the docker image and push it to docker hub - - name: docker - image: plugins/docker - pull: true - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: vikunja/frontend - auto_tag: true - - name: telegram image: appleboy/drone-telegram depends_on: - release - - docker settings: token: from_secret: TELEGRAM_TOKEN @@ -181,4 +155,106 @@ steps: status: - success - failure +--- +kind: pipeline +type: docker +name: docker-arm-latest +platform: + os: linux + arch: arm + +trigger: + branch: + - master + event: + - push + +steps: + - name: docker + image: plugins/docker + pull: true + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: vikunja/frontend + auto_tag: true + +--- +kind: pipeline +type: docker +name: docker-arm-release + +platform: + os: linux + arch: arm + +trigger: + event: + - tag + +steps: + - name: docker + image: plugins/docker + pull: true + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: vikunja/frontend + auto_tag: true + +--- +kind: pipeline +type: docker +name: docker-amd64-latest + +platform: + os: linux + arch: amd64 + +trigger: + branch: + - master + event: + - push + +steps: + - name: docker + image: plugins/docker + pull: true + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: vikunja/frontend + auto_tag: true + +--- +kind: pipeline +type: docker +name: docker-amd64-release + +platform: + os: linux + arch: amd64 + +trigger: + event: + - tag + +steps: + - name: docker + image: plugins/docker + pull: true + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: vikunja/frontend + auto_tag: true