Skip to content

Commit 22c15d1

Browse files
committed
Update build.yaml
1 parent 8ffbce4 commit 22c15d1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: "Release"
22
on:
3+
push:
4+
branches:
5+
- dev
6+
- stage
7+
38
workflow_dispatch:
49
inputs:
510
build_flag:
@@ -13,9 +18,9 @@ on:
1318
jobs:
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:
@@ -88,8 +93,8 @@ jobs:
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

0 commit comments

Comments
 (0)