Added building Docker image for arm in Drone
continuous-integration/drone/push Build is failing Details

main
Guus van Meerveld 2 years ago
parent 86947b34af
commit a179dbe302
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -1,9 +1,13 @@
kind: pipeline
type: docker
name: deploy-image
name: test
platform:
os: linux
arch: amd64
steps:
- name: test-build
- name: Test the newest commit
image: node:16-alpine
volumes:
- name: cache
@ -14,7 +18,22 @@ steps:
- yarn lint
- yarn test-build
- name: build docker file and push to docker hub
volumes:
- name: cache
host:
path: /tmp/drone/cache/node_modules
---
kind: pipeline
type: docker
name: build-linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: Build Dockerfile and push to Dockerhub
image: plugins/docker
settings:
repo: guusvanmeerveld/portfolio
@ -23,8 +42,29 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
volumes:
- name: cache
host:
path: /tmp/drone/cache/node_modules
depends_on:
- test
---
kind: pipeline
type: docker
name: build-linux-amr64
platform:
os: linux
arch: arm64
steps:
- name: Build Dockerfile and push to Dockerhub
image: plugins/docker
settings:
repo: guusvanmeerveld/portfolio
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
depends_on:
- test
Loading…
Cancel
Save