52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
|
|
- name: build and push noteshare
|
|
image: upagge/docker-buildx:latest
|
|
environment:
|
|
DOCKER_REGISTRY_TOKEN:
|
|
from_secret: DOCKER_REGISTRY_TOKEN
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
commands:
|
|
- sleep 10
|
|
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username upagge --password-stdin
|
|
- cd server/prisma
|
|
- docker build -t upagge/noteshare-migrations:latest .
|
|
- cd ..
|
|
- docker build -t upagge/noteshare-backend:latest .
|
|
- cd ../webapp
|
|
- docker build -t upagge/noteshare-frontend:latest .
|
|
- docker push upagge/noteshare-migrations:latest
|
|
- docker push upagge/noteshare-backend:latest
|
|
- docker push upagge/noteshare-frontend:latest
|
|
|
|
trigger:
|
|
branch:
|
|
- drone
|
|
|
|
services:
|
|
- name: docker
|
|
image: docker:20.10.22-dind-alpine3.17
|
|
privileged: true
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
temp: {}
|
|
- name: node_modules
|
|
host:
|
|
path: /drone/volume/node_modules/mkdocs-material
|
|
---
|
|
kind: signature
|
|
hmac: 2bf36a2b13ddb6afa004f1d98cadafaa7fd4a234e65875bfdf0fce96d933d075
|
|
|
|
...
|