Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Added workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
awshuss committed Nov 17, 2023
1 parent 68060b6 commit 05da7ad
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/static-vol-selfserve-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,35 +108,35 @@ jobs:
ecr_tagged_image: $BASE_IMAGE
image_sign_inspect: 'true'

# - name: Build VOL API image
# if: github.event.review.state == 'APPROVED'
# run: |
# docker build -t ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} \
# --build-arg DVSA_AWS_SHAREDCOREECR_ID=${{secrets.DVSA_AWS_SHAREDCOREECR_ID}} .
- name: Build SelfServe image
# if: github.event.review.state == 'APPROVED'
run: |
docker build -t ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} \
--build-arg DVSA_AWS_SHAREDCOREECR_ID=${{secrets.DVSA_AWS_SHAREDCOREECR_ID}} .
# - name: Snyk scan VOL API image
# if: github.event.review.state == 'APPROVED'
# id: scan-api-image
# uses: snyk/actions/docker@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# image: ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG}
# args: --file=dockerfile --severity-threshold=high
# continue-on-error: true

# - name: Configure AWS credentials on Non Production VOL ECR
# if: github.event.review.state == 'APPROVED'
# uses: aws-actions/[email protected]
# with:
# role-to-assume: ${{ secrets.VOL_AWS_ROLE_TOOLING_NONPROD }}
# role-session-name: GitHub_to_AWS_via_FederatedOIDC
# aws-region: ${{ vars.DVSA_AWS_REGION}}
- name: Snyk scan SelfServe image
# if: github.event.review.state == 'APPROVED'
id: scan-api-image
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG}
args: --file=dockerfile --severity-threshold=high
continue-on-error: true

# - name: Login to Non Production VOL ECR
# if: github.event.review.state == 'APPROVED'
# id: login-ecr-vol-tooling-non-prod
# uses: aws-actions/[email protected]
- name: Configure AWS credentials on Non Production VOL ECR
# if: github.event.review.state == 'APPROVED'
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.VOL_AWS_ROLE_TOOLING_NONPROD }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ vars.DVSA_AWS_REGION}}

- name: Login to Non Production VOL ECR
# if: github.event.review.state == 'APPROVED'
id: login-ecr-vol-tooling-non-prod
uses: aws-actions/[email protected]

# - name: Push VOL API image
# if: github.event.review.state == 'APPROVED'
Expand Down

0 comments on commit 05da7ad

Please sign in to comment.