Skip to content

Commit b303e1a

Browse files
committed
Setting a dependency between image publish and k8 deployment (#126)
1 parent 6c851c7 commit b303e1a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
bash run_test.sh
4646
ONLY_DEFINES=1 bash coverage.sh
4747
48-
4948
build_and_deploy_docs:
5049

5150
# The type of runner that the job will run on Ubuntu 18.04 (latest)
@@ -90,7 +89,22 @@ jobs:
9089
- name: GitHub Release
9190
run: 'TOKEN=${{ secrets.GITHUBPAT }} ./github-release.sh'
9291
shell: bash
92+
93+
deploy_artifacts_staging_environment:
94+
needs:
95+
- build-test
96+
- build_and_deploy_docs
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v3
100+
with:
101+
fetch-depth: 0
102+
ref: ${{ github.event.pull_request.head.ref }}
93103
- name: Set release version
104+
env:
105+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
106+
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
107+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
94108
run: './configure_deployment.sh'
95109
shell: bash
96110
- uses: actions-hub/kubectl@master

0 commit comments

Comments
 (0)