fix: parallel CD trigger, remove env blocker, cleanup release pipeline
This commit is contained in:
1 parent
74bf7e19db
commit
4c02ab9d55
13 files changed
+95
-91
No files matched your search
+2
-14
@@ -1,23 +1,18 @@
|
||||
# CD workflow — TEST LAB DEPLOYMENT
|
||||
# Deploys to test lab host 192.168.88.40:2375.
|
||||
# Production Hetzner target TBD — switch DOCKER_HOST when provisioned.
|
||||
# See TODO.md Production Deployment section for cutover plan.
|
||||
# See DEPLOYMENT.md Production Deployment section for cutover plan.
|
||||
|
||||
name: CD
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["CI"]
|
||||
types:
|
||||
- completed
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: [ubuntu-latest]
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
|
||||
environment: production
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -27,13 +22,6 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.allucanget.biz
|
||||
username: ${{ secrets.CI_REGISTRY_USER }}
|
||||
password: ${{ secrets.CI_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Prepare environment
|
||||
run: |
|
||||
cat > .env << 'EOF'
|
||||
|
||||
Reference in new issue
Block a user