-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
154 additions
and
142 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 |
---|---|---|
@@ -1,41 +1,42 @@ | ||
--- | ||
name: Image build for jarvis-proto | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- docker/** | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- docker/** | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
contents: read | ||
id-token: write | ||
jobs: | ||
build: | ||
name: Build and publish Test image | ||
env: | ||
GCR_URL: gcr.io | ||
GCP_PROJECT_ID: jarvis-dev-268314 | ||
SSH_KEY: ${{ secrets.SSH_KEY }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- id: get_version | ||
run: | | ||
version=`cat ./docker/ForJarvisProtoLocal.Dockerfile | sed -nr 's/.*version="(.+)"/\1/p'` | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
- name: setup buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Setup GCP Auth | ||
id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: 'projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider' | ||
service_account: 'terraform-provider-indykite@jarvis-dev-268314.iam.gserviceaccount.com' | ||
- name: login to container registry | ||
run: | | ||
gcloud auth configure-docker -q | ||
- name: Build, Tag and Publish docker image | ||
run: | | ||
cd docker | ||
docker buildx build --push --squash --build-arg SSH_PRIVATE_KEY="${SSH_KEY}" --tag ${GCR_URL}/${GCP_PROJECT_ID}/test/terraform-tests-for-local-jarvis:latest --tag ${GCR_URL}/${GCP_PROJECT_ID}/test/terraform-tests-for-local-jarvis:${{ steps.get_version.outputs.version }} --platform linux/amd64,linux/arm64 -f ForJarvisProtoLocal.Dockerfile . | ||
build: | ||
name: Build and publish Test image | ||
env: | ||
GCR_URL: gcr.io | ||
GCP_PROJECT_ID: jarvis-dev-268314 | ||
SSH_KEY: ${{ secrets.SSH_KEY }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- id: get_version | ||
run: | | ||
version=`cat ./docker/ForJarvisProtoLocal.Dockerfile | sed -nr 's/.*version="(.+)"/\1/p'` | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
- name: setup buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Setup GCP Auth | ||
id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
workload_identity_provider: projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider | ||
service_account: terraform-provider-indykite@jarvis-dev-268314.iam.gserviceaccount.com | ||
- name: login to container registry | ||
run: | | ||
gcloud auth configure-docker -q | ||
- name: Build, Tag and Publish docker image | ||
run: | | ||
cd docker | ||
docker buildx build --push --squash --build-arg SSH_PRIVATE_KEY="${SSH_KEY}" --tag ${GCR_URL}/${GCP_PROJECT_ID}/test/terraform-tests-for-local-jarvis:latest --tag ${GCR_URL}/${GCP_PROJECT_ID}/test/terraform-tests-for-local-jarvis:${{ steps.get_version.outputs.version }} --platform linux/amd64,linux/arm64 -f ForJarvisProtoLocal.Dockerfile . |
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
--- | ||
name: Integration Tests | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
concurrency: | ||
group: integration-${{ github.ref }} | ||
cancel-in-progress: true | ||
group: integration-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-integration: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.draft == false | ||
env: | ||
INDYKITE_APPLICATION_CREDENTIALS: ${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }} | ||
CUSTOMER_ID: ${{secrets.CUSTOMER_ID}} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
test-integration: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.draft == false | ||
env: | ||
INDYKITE_APPLICATION_CREDENTIALS: ${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }} | ||
CUSTOMER_ID: ${{secrets.CUSTOMER_ID}} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Terraform Init and Apply | ||
run: | | ||
make build_test_local_plugin integration | ||
- name: Terraform Init and Apply | ||
run: | | ||
make build_test_local_plugin integration |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
examples/resources/indykite_application_agent_credential/resource.tf
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
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
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
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
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
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
Oops, something went wrong.