---
kind: pipeline
type: docker
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:
- main
name: Development
- name: Check for changes in master branch
- ./check-master-for-changes.sh
- name: Build & Publish Development Image
dockerfile: Dockerfile.nightly
target: dev
tags: dev
- name: Build & Publish Nightly Image
target: nightly
tags: nightly