generated from NERC-CEH/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.25 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on: [push, pull_request]
permissions:
contents: read
pages: write
id-token: write
actions: read
jobs:
test-python:
uses: NERC-CEH/dri-cicd/.github/workflows/test-python.yml@main
build-test-docker:
uses: NERC-CEH/dri-cicd/.github/workflows/build-docker.yml@main
with:
package_name: os_api
test_image: false
deploy-docker:
uses: NERC-CEH/dri-cicd/.github/workflows/deploy-docker.yml@main
with:
image_artifact_name: ${{ needs.build-test-docker.outputs.image_artifact_name }}
image_artifact_file: ${{ needs.build-test-docker.outputs.image_artifact_file }}
image_name: ${{ needs.build-test-docker.outputs.image_name }}
if: ${{ github.ref_name == 'main' || github.head_ref == 'main'}}
needs: [test-python, build-test-docker]
secrets:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
build-docs:
uses: NERC-CEH/dri-cicd/.github/workflows/build-docs.yml@main
deploy-docs:
uses: NERC-CEH/dri-cicd/.github/workflows/deploy-docs.yml@main
with:
pages_artifact_name: ${{ needs.build-docs.outputs.pages_artifact_name }}
if: ${{ github.ref_name == 'main' || github.head_ref == 'main'}}
needs: [test-python, build-docs, build-test-docker]