File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11name : " Release"
22on :
3+ push :
4+ branches :
5+ - dev
6+ - stage
7+
38 workflow_dispatch :
49 inputs :
510 build_flag :
1318jobs :
1419 build :
1520 runs-on : ubuntu-latest
16- name : Build, Push, Deploy (dev)
17- environment : " dev "
18- timeout-minutes : 45
21+ name : Build, Push, Deploy
22+ environment : ${{ github.ref_name }}
23+ timeout-minutes : 20
1924 steps :
2025 - uses : actions/checkout@v2
2126 with :
8893 ssh-add ~/.ssh/github_actions
8994
9095 echo Configuring docker context
91- docker context create dev --docker "host=ssh://github-actions@${{ vars.AZURE_DOCKER_HOST_IP }}"
92- docker context use dev
96+ docker context create ${{ vars.ENV }} --docker "host=ssh://github-actions@${{ vars.AZURE_DOCKER_HOST_IP }}"
97+ docker context use ${{ vars.ENV }}
9398
9499 # remove images no longer in use--may need disk space to pull
95100 echo Pruning old docker images
You can’t perform that action at this time.
0 commit comments