33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Harbor Build+Push+Deploy (Example)
|
|
|
|
"on":
|
|
workflow_dispatch:
|
|
inputs:
|
|
deploy_runner:
|
|
description: "Runner label for deploy (use self-hosted label for real deploy)"
|
|
required: true
|
|
default: self-hosted
|
|
tag:
|
|
description: "Optional tag (default: sha-<shortsha>)"
|
|
required: false
|
|
default: ""
|
|
|
|
jobs:
|
|
deploy:
|
|
# Replace with your actual owner/repo and a pinned ref (tag or commit SHA).
|
|
# Example: your-org/registry-stack/.github/workflows/harbor-build-push-deploy.reusable.yml@v1
|
|
uses: YOUR_ORG/registry-stack/.github/workflows/harbor-build-push-deploy.reusable.yml@v1
|
|
with:
|
|
deploy_runner: ${{ inputs.deploy_runner }}
|
|
tag: ${{ inputs.tag }}
|
|
# Defaults:
|
|
# - harbor_registry: harbor.hcmc.online
|
|
# - harbor_project: ci
|
|
# - image_repo: <repo-name>
|
|
# - compose_workdir: .
|
|
secrets:
|
|
HARBOR_PUSH_USERNAME: ${{ secrets.HARBOR_PUSH_USERNAME }}
|
|
HARBOR_PUSH_PASSWORD: ${{ secrets.HARBOR_PUSH_PASSWORD }}
|
|
HARBOR_PULL_USERNAME: ${{ secrets.HARBOR_PULL_USERNAME }}
|
|
HARBOR_PULL_PASSWORD: ${{ secrets.HARBOR_PULL_PASSWORD }}
|