Update Drone config into seperate pipeline

This commit is contained in:
Florian Brinker 2021-05-10 18:52:56 +02:00
parent 1a2fcd577d
commit 4134449260

View File

@ -1,10 +1,35 @@
---
kind: pipeline
type: docker
name: production
name: Production
steps:
- name: Build Dockerfile
image: alpine
commands:
- apk update && apk add bash curl grep jq sed
- ./build.sh
- name: Build & Publish Image
image: plugins/docker
settings:
repo: fbrinker/tileboard
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master
---
kind: pipeline
type: docker
name: Development
steps:
- name: Check for changes in master branch
image: alpine
commands:
@ -35,22 +60,6 @@ steps:
password:
from_secret: docker_password
- name: Prepare Release Dockerfile
image: alpine
commands:
- apk update && apk add bash curl grep jq sed
- ./build.sh
- name: Build & Publish Release Image
image: plugins/docker
settings:
repo: fbrinker/tileboard
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master