-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build and Push to Artifact Registry | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version string for SDK Test Runner release' | ||
required: true | ||
default: '1' | ||
|
||
push: | ||
paths: | ||
.github/workflows/* | ||
|
||
env: | ||
VERSION: 1.1.0 | ||
|
||
PROJECT_ID: ${{ vars.SDK_TESTING_PROJECT_ID }} | ||
REGION: ${{ vars.SDK_TESTING_REGION }} | ||
GAR_LOCATION: ${{ vars.SDK_TESTING_REGION }}-docker.pkg.dev/${{ vars.SDK_TESTING_PROJECT_ID }}/sdk-testing | ||
|
||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "package-testing/sdk-test-runner" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
# Set up gCloud | ||
- id: "auth" | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
credentials_json: "${{ secrets.SERVICE_ACCOUNT_KEY }}" | ||
|
||
- name: "Set up Cloud SDK" | ||
uses: "google-github-actions/setup-gcloud@v1" | ||
|
||
- name: "Use gcloud CLI" | ||
run: "gcloud info" | ||
|
||
# Allow docker access to the GAR | ||
- name: "Docker auth" | ||
run: |- | ||
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet | ||
# Build and push | ||
- name: Build and export | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
context: ./package-testing/sdk-test-runner | ||
tags: ${{ env.GAR_LOCATION }}/sdk-test-runner:latest,${{ env.GAR_LOCATION }}/sdk-test-runner:${{ env.VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build and Push to Artifact Registry | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version string for SDK Testing API release' | ||
required: true | ||
default: '1' | ||
|
||
push: | ||
paths: | ||
.github/workflows/* | ||
|
||
env: | ||
VERSION: 1.1.0 | ||
|
||
PROJECT_ID: ${{ vars.SDK_TESTING_PROJECT_ID }} | ||
REGION: ${{ vars.SDK_TESTING_REGION }} | ||
GAR_LOCATION: ${{ vars.SDK_TESTING_REGION }}-docker.pkg.dev/${{ vars.SDK_TESTING_PROJECT_ID }}/sdk-testing | ||
|
||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "package-testing/testing-api" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
# Set up gCloud | ||
- id: "auth" | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
credentials_json: "${{ secrets.SERVICE_ACCOUNT_KEY }}" | ||
|
||
- name: "Set up Cloud SDK" | ||
uses: "google-github-actions/setup-gcloud@v1" | ||
|
||
- name: "Use gcloud CLI" | ||
run: "gcloud info" | ||
|
||
# Allow docker access to the GAR | ||
- name: "Docker auth" | ||
run: |- | ||
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet | ||
# Build and push | ||
- name: Build and export | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
context: ./package-testing/testing-api | ||
tags: ${{ env.GAR_LOCATION }}/testing-api:latest,${{ env.GAR_LOCATION }}/testing-api:${{ env.VERSION }} |
This file was deleted.
Oops, something went wrong.