You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.1 KiB
71 lines
1.1 KiB
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Test the newest commit
|
|
image: node:16-alpine
|
|
volumes:
|
|
- name: cache
|
|
path: /drone/src/node_modules
|
|
commands:
|
|
- yarn install
|
|
- yarn run prisma:generate
|
|
- yarn lint
|
|
- yarn test-build
|
|
|
|
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
|
|
privileged: true
|
|
settings:
|
|
repo: guusvanmeerveld/portfolio
|
|
tags: latest
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build-linux-arm64
|
|
|
|
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 |