Skip to content

Commit 5f149a7

Browse files
committed
[ci] add deployment o dev in github action
1 parent 83de001 commit 5f149a7

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/cd-publish-and-deploy.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,38 @@ jobs:
3232
if: ${{ github.ref_name == 'master' }}
3333
run: |
3434
awx --conf.host ${{ secrets.AWX_URL }} --conf.username ${{ secrets.AWX_USER }} --conf.password ${{ secrets.AWX_PASSWORD }} \
35-
job_templates launch 'Rollout restart an instance resources' \
36-
--wait -f human \
35+
job_templates launch 'Rollout restart an instance resources' --wait -f human \
3736
--inventory eu-west-staging \
3837
--extra_vars '{"customer":"testing","solution": "opencti" }'
3938
39+
- name: Deploy on dev
40+
if: ${{ github.ref_name == 'master' }}
41+
run: |
42+
awx --conf.host ${{ secrets.AWX_URL }} --conf.username ${{ secrets.AWX_USER }} --conf.password ${{ secrets.AWX_PASSWORD }} \
43+
job_templates launch 'Rollout restart an instance resources' --wait -f human \
44+
--inventory eu-west-staging \
45+
--extra_vars '{"customer":"dev","solution": "opencti" }'
46+
4047
- name: Deploy on prerelease CE
4148
if: ${{ github.ref_name == 'master' }}
4249
run: |
4350
awx --conf.host ${{ secrets.AWX_URL }} --conf.username ${{ secrets.AWX_USER }} --conf.password ${{ secrets.AWX_PASSWORD }} \
44-
job_templates launch 'Rollout restart an instance resources' \
45-
--wait -f human \
51+
job_templates launch 'Rollout restart an instance resources' --wait -f human \
4652
--inventory gcp-staging \
4753
--extra_vars '{"customer":"prerelease-ce","solution": "opencti" }'
4854
4955
- name: Deploy on prerelease
5056
if: ${{ github.ref_name == 'prerelease' }}
5157
run: |
5258
awx --conf.host ${{ secrets.AWX_URL }} --conf.username ${{ secrets.AWX_USER }} --conf.password ${{ secrets.AWX_PASSWORD }} \
53-
job_templates launch 'Rollout restart an instance resources' \
54-
--wait -f human \
59+
job_templates launch 'Rollout restart an instance resources' --wait -f human \
5560
--inventory aws-staging \
5661
--extra_vars '{"customer":"prerelease-aws","solution": "opencti" }'
5762
5863
- name: Deploy on cicd-test
5964
if: ${{ github.ref_name == 'issue/13571-build-images' }}
6065
run: |
6166
awx --conf.host ${{ secrets.AWX_URL }} --conf.username ${{ secrets.AWX_USER }} --conf.password ${{ secrets.AWX_PASSWORD }} \
62-
job_templates launch 'Rollout restart an instance resources' \
63-
--wait -f human \
67+
job_templates launch 'Rollout restart an instance resources' --wait -f human \
6468
--inventory eu-west-staging \
6569
--extra_vars '{"customer":"cicd-test","solution": "opencti" }'

0 commit comments

Comments
 (0)