ci: Update build.yml workflow
This commit is contained in:
parent
5aacd59db0
commit
6bb95a36f1
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -427,8 +427,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to staging
|
- name: Deploy to staging
|
||||||
run: |
|
uses: the-actions-org/workflow-dispatch@v4
|
||||||
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GH_INFRA_K8S_TOKEN }}" ${{ secrets.GHA_K8S_DEPLOY_API }} -d '{"ref":"main", "inputs": { "environment":"${{ secrets.GHA_K8S_CLUSTER }}", "app":"datatracker", "appVersion":"${{ env.PKG_VERSION }}" }}'
|
with:
|
||||||
|
workflow: deploy.yml
|
||||||
|
repo: ietf-tools/infra-k8s
|
||||||
|
token: ${{ secrets.GH_INFRA_K8S_TOKEN }}
|
||||||
|
inputs: '{"ref":"main", "inputs": { "environment":"${{ secrets.GHA_K8S_CLUSTER }}", "app":"datatracker", "appVersion":"${{ env.PKG_VERSION }}", "remoteRef":"${{ github.sha }}" }}'
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# PROD
|
# PROD
|
||||||
|
@ -442,8 +446,12 @@ jobs:
|
||||||
name: production
|
name: production
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}
|
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to production
|
- name: Deploy to production
|
||||||
run: |
|
uses: the-actions-org/workflow-dispatch@v4
|
||||||
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GH_INFRA_K8S_TOKEN }}" ${{ secrets.GHA_K8S_DEPLOY_API }} -d '{"ref":"main", "inputs": { "environment":"${{ secrets.GHA_K8S_CLUSTER }}", "app":"datatracker", "appVersion":"${{ env.PKG_VERSION }}" }}'
|
with:
|
||||||
|
workflow: deploy.yml
|
||||||
|
repo: ietf-tools/infra-k8s
|
||||||
|
token: ${{ secrets.GH_INFRA_K8S_TOKEN }}
|
||||||
|
inputs: '{"ref":"main", "inputs": { "environment":"${{ secrets.GHA_K8S_CLUSTER }}", "app":"datatracker", "appVersion":"${{ env.PKG_VERSION }}", "remoteRef":"${{ github.sha }}" }}'
|
||||||
|
|
Loading…
Reference in a new issue