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 <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/164
This commit is contained in:
konrad 2020-06-22 11:55:03 +00:00
parent 5283f006f5
commit 90ba845b21

View file

@ -71,23 +71,10 @@ steps:
target: /frontend/ target: /frontend/
depends_on: [ static ] 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 - name: telegram
image: appleboy/drone-telegram image: appleboy/drone-telegram
depends_on: depends_on:
- release - release
- docker
settings: settings:
token: token:
from_secret: TELEGRAM_TOKEN from_secret: TELEGRAM_TOKEN
@ -151,23 +138,10 @@ steps:
target: /frontend/ target: /frontend/
depends_on: [ static ] 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 - name: telegram
image: appleboy/drone-telegram image: appleboy/drone-telegram
depends_on: depends_on:
- release - release
- docker
settings: settings:
token: token:
from_secret: TELEGRAM_TOKEN from_secret: TELEGRAM_TOKEN
@ -181,4 +155,106 @@ steps:
status: status:
- success - success
- failure - 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