Skip to content

Commit cd797fc

Browse files
committed
ci: fix deploy trigger pipeline to ansible
1 parent 67e1ef0 commit cd797fc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515
required: false
1616
type: string
1717
BEC_DEPLOYMENT_ENVIRONMENT:
18-
description: 'Deployment environment (e.g., dev, qa or prod)'
18+
description: 'Deployment environment (e.g., bec-atlas-dev.psi.ch)'
1919
required: false
20-
default: 'qa'
20+
default: 'bec-atlas-qa.psi.ch'
2121
type: string
2222

2323
# default: least privileged permissions across all jobs
@@ -38,18 +38,19 @@ jobs:
3838
shell: bash
3939
run: |
4040
# Use inputs if available (workflow_dispatch), otherwise use defaults for push
41-
DEPLOYMENT_ENV="${{ inputs.BEC_DEPLOYMENT_ENVIRONMENT || 'qa' }}"
41+
DEPLOYMENT_ENV="${{ inputs.BEC_DEPLOYMENT_ENVIRONMENT || 'bec-atlas-qa.psi.ch' }}"
4242
ATLAS_BRANCH="${{ inputs.BEC_ATLAS_BRANCH || 'main' }}"
4343
4444
echo "Deploying application to ${DEPLOYMENT_ENV} environment..."
4545
curl -X 'POST' \
46-
"https://gitea.psi.ch/api/v1/repos/bec/bec_atlas_ci/actions/workflows/deploy.yml/dispatches?token=${{ secrets.CI_DEPLOY_GITEA }}" \
46+
"https://gitea.psi.ch/api/v1/repos/bec/ansible_bec/actions/workflows/deploy_bec_atlas.yml/dispatches?token=${{ secrets.CI_DEPLOY_GITEA }}" \
4747
-H 'accept: application/json' \
4848
-H 'Content-Type: application/json' \
4949
-d "{
5050
\"inputs\": {
5151
\"ATLAS_SERVER\": \"${DEPLOYMENT_ENV}\",
52-
\"BEC_ATLAS_BRANCH\": \"${ATLAS_BRANCH}\"
52+
\"BEC_ATLAS_BRANCH\": \"${ATLAS_BRANCH}\",
53+
\"BEC_CORE_BRANCH\": \"${CORE_BRANCH}\"
5354
},
5455
\"ref\": \"refs/heads/main\"
5556
}"

0 commit comments

Comments
 (0)