Skip to content

Commit 420661c

Browse files
committed
update actions
1 parent a766710 commit 420661c

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/build-pipeline.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
poetry run pytest --junitxml=build/reports/pytest.xml --cov=podaac/ --cov-report=xml:build/reports/coverage.xml -m "not aws and not integration" tests/
8383
8484
- name: SonarCloud Scan
85-
uses: sonarsource/sonarqube-scan-action@v4
85+
uses: sonarsource/sonarqube-scan-action@v5
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -132,22 +132,14 @@ jobs:
132132
git tag -a "${{ env.software_version }}" -m "Version ${{ env.software_version }}"
133133
git push origin "${{ env.software_version }}"
134134
135-
- name: Configure AWS credentials for UAT
136-
if: env.venue == 'uat'
137-
uses: aws-actions/configure-aws-credentials@v3
135+
- name: Configure AWS credentials
136+
if: env.venue == 'uat' || env.venue == 'ops'
137+
uses: aws-actions/configure-aws-credentials@v4
138138
with:
139-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CUMULUS_UAT }}
140-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CUMULUS_UAT }}
139+
aws-access-key-id: ${{ secrets[env.venue == 'uat' && 'AWS_ACCESS_KEY_ID_CUMULUS_UAT' || 'AWS_ACCESS_KEY_ID_CUMULUS_OPS'] }}
140+
aws-secret-access-key: ${{ secrets[env.venue == 'uat' && 'AWS_SECRET_ACCESS_KEY_CUMULUS_UAT' || 'AWS_SECRET_ACCESS_KEY_CUMULUS_OPS'] }}
141141
aws-region: us-west-2
142-
143-
- name: Configure AWS credentials for OPS
144-
if: env.venue == 'ops'
145-
uses: aws-actions/configure-aws-credentials@v3
146-
with:
147-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CUMULUS_OPS }}
148-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CUMULUS_OPS }}
149-
aws-region: us-west-2
150-
142+
151143
- name: Get Lauchpad Token
152144
id: lambda
153145
if: |
@@ -262,7 +254,7 @@ jobs:
262254
- name: Build and push Docker image
263255
if: ${{ !startsWith(github.ref, 'refs/heads/feature') }}
264256
id: docker-push
265-
uses: docker/build-push-action@v5
257+
uses: docker/build-push-action@v6
266258
with:
267259
context: .
268260
file: docker/Dockerfile

0 commit comments

Comments
 (0)