-
Notifications
You must be signed in to change notification settings - Fork 127
CSPL-4201 use OIDC in GitHub pipelines #1630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 9 commits
81a5a89
480eba4
d003727
836c030
594ee3c
a84be41
d472b2b
7249a86
bf1129a
85bb593
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,19 +89,20 @@ jobs: | |
| sudo chmod +x operator-sdk_${OS}_${ARCH} | ||
| sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk | ||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| uses: aws-actions/configure-aws-credentials@v5 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
| role-to-assume: ${{ vars.AWS_ROLE_ARN }} | ||
| role-session-name: github-${{ github.run_id }} | ||
| aws-region: ${{ vars.AWS_REGION }} | ||
| role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }} | ||
| - name: Login to Amazon ECR | ||
| id: login-ecr | ||
| uses: aws-actions/amazon-ecr-login@v1 | ||
| - name: Build and push Splunk Operator Image | ||
| run: | | ||
| export PLATFORMS=linux/arm64,linux/amd64 | ||
| export BASE_IMAGE=ubuntu | ||
| export BASE_IMAGE_VERSION=24.10 | ||
| export BASE_IMAGE_VERSION=24.04 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you decrease it?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 24.04 is LTS (Long Term Support) release. The next LTS will be 26.04. |
||
| export IMG=${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA | ||
| make docker-buildx PLATFORMS=$PLATFORMS BASE_IMAGE=$BASE_IMAGE BASE_IMAGE_VERSION=$BASE_IMAGE_VERSION IMG=$IMG | ||
| - name: Sign Splunk Operator image with a key | ||
|
|
@@ -211,11 +212,12 @@ jobs: | |
| run: | | ||
| echo "SPLUNK_OPERATOR_IMAGE=${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA" >> $GITHUB_ENV | ||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| uses: aws-actions/configure-aws-credentials@v5 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
| role-to-assume: ${{ vars.AWS_ROLE_ARN }} | ||
| role-session-name: github-${{ github.run_id }} | ||
| aws-region: ${{ vars.AWS_REGION }} | ||
| role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }} | ||
| - name: Login to Amazon ECR | ||
| id: login-ecr | ||
| uses: aws-actions/amazon-ecr-login@v1 | ||
|
|
@@ -240,6 +242,10 @@ jobs: | |
| cp /snap/bin/kustomize ./bin/kustomize | ||
| - name: Run smoke test | ||
| id: smoketest | ||
| timeout-minutes: 240 | ||
| env: | ||
| TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }} | ||
| TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }} | ||
| run: | | ||
| make int-test | ||
| - name: Collect Test Logs | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.