File tree Expand file tree Collapse file tree 4 files changed +102
-1
lines changed Expand file tree Collapse file tree 4 files changed +102
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and push SDK Test Runner
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ version :
7
+ description : ' Version string for SDK Test Runner release'
8
+ type : string
9
+ required : true
10
+ docker_context :
11
+ type : string
12
+ description : ' Directory where dockerfile exists'
13
+ required : true
14
+ image_name :
15
+ type : string
16
+ description : ' Docker image name'
17
+ required : true
18
+
19
+ env :
20
+ VERSION : 1.1.0
21
+
22
+ PROJECT_ID : ${{ vars.SDK_TESTING_PROJECT_ID }}
23
+ REGION : ${{ vars.SDK_TESTING_REGION }}
24
+ GAR_LOCATION : ${{ vars.SDK_TESTING_REGION }}-docker.pkg.dev/${{ vars.SDK_TESTING_PROJECT_ID }}/sdk-testing
25
+
26
+
27
+ jobs :
28
+ build-and-upload :
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - name : " Checkout"
32
+ uses : actions/checkout@v3
33
+
34
+ # Set up gCloud
35
+ - id : " auth"
36
+ uses : " google-github-actions/auth@v1"
37
+ with :
38
+ credentials_json : " ${{ secrets.SERVICE_ACCOUNT_KEY }}"
39
+
40
+ - name : " Set up Cloud SDK"
41
+ uses : " google-github-actions/setup-gcloud@v1"
42
+
43
+ - name : " Use gcloud CLI"
44
+ run : " gcloud info"
45
+
46
+ # Allow docker access to the GAR
47
+ - name : " Docker auth"
48
+ run : |-
49
+ gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
50
+
51
+ # Build and push
52
+ - name : Build and export
53
+ uses : docker/build-push-action@v6
54
+ with :
55
+ push : true
56
+ context : ${{ inputs.docker_context }}
57
+ tags : ${{ env.GAR_LOCATION }}/${{ inputs.image_name }}:latest,${{ env.GAR_LOCATION }}/${{ inputs.image_name }}:${{ env.VERSION }}
Original file line number Diff line number Diff line change
1
+ name : Build and push SDK Test Runner
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Version string for SDK Test Runner release'
8
+ required : true
9
+ default : ' 1.0.0'
10
+
11
+ push :
12
+ paths :
13
+ .github/workflows/release-sdk-test-runner.yml
14
+
15
+ jobs :
16
+ build-and-upload :
17
+ uses : ./.github/workflows/build-and-push.yml
18
+ with :
19
+ version : ${{ inputs.version }}
20
+ docker_context : ./package-testing/sdk-test-runner
21
+ image_name : sdk-test-runner
22
+ secrets : inherit
Original file line number Diff line number Diff line change
1
+ name : Build and push Testing API
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Version string for SDK Testing API release'
8
+ required : true
9
+ default : ' 1.0.0'
10
+
11
+ push :
12
+ paths :
13
+ .github/workflows/release-sdk-testing-api.yml
14
+
15
+ jobs :
16
+ build-and-upload :
17
+ uses : ./.github/workflows/build-and-push.yml
18
+ with :
19
+ version : ${{ inputs.version }}
20
+ docker_context : ./package-testing/testing-api
21
+ image_name : testing-api
22
+ secrets : inherit
Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
pull_request :
6
6
paths :
7
- - ' .github/workflows/** '
7
+ - ' .github/workflows/validate-test-data.yml '
8
8
- ' ufc/tests/**'
9
9
push :
10
10
branches :
You can’t perform that action at this time.
0 commit comments