1st commit
This commit is contained in:
Executable
+83
@@ -0,0 +1,83 @@
|
||||
# ------------------------------------------------------------------------------------------------ #
|
||||
# sommpanion/wine-db-api/.drone.yml #
|
||||
# ------------------------------------------------------------------------------------------------ #
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-push
|
||||
|
||||
steps:
|
||||
# Step 1: Normal pushes — any branch except tags
|
||||
- name: build-push-dev
|
||||
image: plugins/docker:latest
|
||||
settings:
|
||||
registry: registry.yiem.cc
|
||||
repo: registry.yiem.cc/sommpanion/wine-db-api
|
||||
username:
|
||||
from_secret: registry_Caddy_username # fill in registry.yiem.cc's Caddy basic auth secret in Drone UI
|
||||
password:
|
||||
from_secret: registry_Caddy_password
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
buildkit: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
tags:
|
||||
- latest
|
||||
- sha-${DRONE_COMMIT_SHA:0:8}
|
||||
- build-${DRONE_BUILD_NUMBER}
|
||||
- ${DRONE_BRANCH}
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
exclude:
|
||||
- refs/tags/*
|
||||
|
||||
- name: build-push-pr
|
||||
image: plugins/docker:latest
|
||||
settings:
|
||||
registry: registry.yiem.cc
|
||||
repo: registry.yiem.cc/sommpanion/wine-db-api
|
||||
username:
|
||||
from_secret: registry_Caddy_username # fill in registry.yiem.cc's Caddy basic auth secret in Drone UI
|
||||
password:
|
||||
from_secret: registry_Caddy_password
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
buildkit: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
tags:
|
||||
- pr-${DRONE_PULL_REQUEST}
|
||||
- sha-${DRONE_COMMIT_SHA:0:8}
|
||||
- build-${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
- name: build-push-release
|
||||
image: plugins/docker:latest
|
||||
settings:
|
||||
registry: registry.yiem.cc
|
||||
repo: registry.yiem.cc/sommpanion/wine-db-api
|
||||
username:
|
||||
from_secret: registry_Caddy_username # fill in registry.yiem.cc's Caddy basic auth secret in Drone UI
|
||||
password:
|
||||
from_secret: registry_Caddy_password
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
buildkit: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
tags:
|
||||
- latest
|
||||
- sha-${DRONE_COMMIT_SHORT}
|
||||
- build-${DRONE_BUILD_NUMBER}
|
||||
- ${DRONE_TAG}
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
Reference in New Issue
Block a user