|
|
@ -1,9 +1,13 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: deploy-image
|
|
|
|
name: test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform:
|
|
|
|
|
|
|
|
os: linux
|
|
|
|
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: test-build
|
|
|
|
- name: Test the newest commit
|
|
|
|
image: node:16-alpine
|
|
|
|
image: node:16-alpine
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
- name: cache
|
|
|
@ -14,7 +18,22 @@ steps:
|
|
|
|
- yarn lint
|
|
|
|
- yarn lint
|
|
|
|
- yarn test-build
|
|
|
|
- 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
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
repo: guusvanmeerveld/portfolio
|
|
|
|
repo: guusvanmeerveld/portfolio
|
|
|
@ -23,8 +42,29 @@ steps:
|
|
|
|
from_secret: docker_username
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
depends_on:
|
|
|
|
- name: cache
|
|
|
|
- test
|
|
|
|
host:
|
|
|
|
|
|
|
|
path: /tmp/drone/cache/node_modules
|
|
|
|
---
|
|
|
|
|
|
|
|
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
|