ci: publish images to GHCR and create GitHub release via Drone
This commit is contained in:
+49
@@ -72,6 +72,55 @@ steps:
|
|||||||
context: frontend/
|
context: frontend/
|
||||||
registry: registry.local.nothaft.cloud
|
registry: registry.local.nothaft.cloud
|
||||||
|
|
||||||
|
# -------- NEW: Publish Docker images to GitHub Container Registry --------
|
||||||
|
- name: push-backend-ghcr
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: ghcr.io/the-luap/picpeak-backend
|
||||||
|
tags:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
- latest
|
||||||
|
dockerfile: backend/Dockerfile
|
||||||
|
context: backend/
|
||||||
|
registry: ghcr.io
|
||||||
|
username:
|
||||||
|
from_secret: GITHUB_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: GITHUB_TOKEN
|
||||||
|
build_args:
|
||||||
|
- VERSION=${DRONE_TAG}
|
||||||
|
|
||||||
|
- name: push-frontend-ghcr
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: ghcr.io/the-luap/picpeak-frontend
|
||||||
|
tags:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
- latest
|
||||||
|
dockerfile: frontend/Dockerfile
|
||||||
|
context: frontend/
|
||||||
|
registry: ghcr.io
|
||||||
|
username:
|
||||||
|
from_secret: GITHUB_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: GITHUB_TOKEN
|
||||||
|
build_args:
|
||||||
|
- VERSION=${DRONE_TAG}
|
||||||
|
- VITE_API_URL=${VITE_API_URL:-/api}
|
||||||
|
|
||||||
|
# -------- NEW: Create GitHub Release --------
|
||||||
|
- name: github-release
|
||||||
|
image: plugins/github-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: GITHUB_TOKEN
|
||||||
|
files: ["CHANGELOG.md"]
|
||||||
|
title: "PicPeak ${DRONE_TAG}"
|
||||||
|
note: |
|
||||||
|
Release ${DRONE_TAG}
|
||||||
|
|
||||||
|
See CHANGELOG.md for full details.
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
Reference in New Issue
Block a user