This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
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
1 changed file
with
39 additions
and
36 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,5 +1,5 @@ | ||
name: CI/CD STATIC SELFSERVE | ||
run-name: CI/CD STATIC SELFSERVE | ||
name: CI/CD STATIC SELFSERVE WEB | ||
run-name: CI/CD STATIC SELFSERVE WEB | ||
|
||
on: | ||
pull_request_review: | ||
|
@@ -108,13 +108,13 @@ jobs: | |
ecr_tagged_image: $BASE_IMAGE | ||
image_sign_inspect: 'true' | ||
|
||
- name: Build SelfServe image | ||
- name: Build SelfServe Web 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 SelfServe image | ||
- name: Snyk scan SelfServe Web image | ||
# if: github.event.review.state == 'APPROVED' | ||
id: scan-api-image | ||
uses: snyk/actions/docker@master | ||
|
@@ -138,7 +138,7 @@ jobs: | |
id: login-ecr-vol-tooling-non-prod | ||
uses: aws-actions/[email protected] | ||
|
||
- name: Push SelfServe image | ||
- name: Push SelfServe Web image | ||
# if: github.event.review.state == 'APPROVED' | ||
id: push-image | ||
run: | | ||
|
@@ -148,42 +148,45 @@ jobs: | |
outputs: | ||
image_tag: ${{ steps.push-image.outputs.image_tag }} | ||
|
||
# deploy-on-static-cluster: | ||
|
||
# name: Deploy on Static ECS Cluster | ||
# if: github.event.review.state == 'APPROVED' | ||
# needs: | ||
# - dockerfile-lint-check | ||
# - unit-tests | ||
# - build-test-push-sign-image | ||
# runs-on: ubuntu-latest | ||
deploy-on-static-cluster: | ||
|
||
name: Deploy on Static ECS Cluster | ||
# if: github.event.review.state == 'APPROVED' | ||
needs: | ||
- dockerfile-lint-check | ||
- unit-tests | ||
# - security | ||
# - static-analysis | ||
# - tests | ||
- build-test-push-sign-image | ||
runs-on: ubuntu-latest | ||
|
||
# steps: | ||
steps: | ||
|
||
# - name: Deploy | ||
# run: | | ||
# echo 'Deploy on Static' | ||
- name: Deploy | ||
run: | | ||
echo 'Deploy on Static' | ||
# # uses: ./.github/workflows/trigger-github-workflow.yaml | ||
# # with: | ||
# # branch: 'feature/AWSRESET1-514' | ||
# # git_repository: 'dvsa/dvsa-container-registry' | ||
# # workflow_name: 'CD NON-PROD VOL API' | ||
# # input_arguments: 'VOL_SSWEB_IMAGE_TAG=${{ needs.build-test-push-sign-image.outputs.image_tag }}' | ||
# # secrets: | ||
# # gh_token: ${{ secrets.DVSA_VOL_TERRAFORM_ACCESS_TOKEN }} | ||
# uses: ./.github/workflows/trigger-github-workflow.yaml | ||
# with: | ||
# branch: 'feature/AWSRESET1-514' | ||
# git_repository: 'dvsa/dvsa-container-registry' | ||
# workflow_name: 'CD NON-PROD SelfServe Web' | ||
# input_arguments: 'VOL_SSWEB_IMAGE_TAG=${{ needs.build-test-push-sign-image.outputs.image_tag }}' | ||
# secrets: | ||
# gh_token: ${{ secrets.DVSA_VOL_TERRAFORM_ACCESS_TOKEN }} | ||
|
||
# automation-tests: | ||
automation-tests: | ||
|
||
# name: Run Automation Tests | ||
# if: github.event.review.state == 'APPROVED' | ||
# runs-on: ubuntu-latest | ||
name: Run Automation Tests | ||
if: github.event.review.state == 'APPROVED' | ||
runs-on: ubuntu-latest | ||
|
||
# needs: | ||
# - deploy-on-static-cluster | ||
needs: | ||
- deploy-on-static-cluster | ||
|
||
# steps: | ||
steps: | ||
|
||
# - name: Run automation tests | ||
# run: | | ||
# echo 'Run automation tests' | ||
- name: Run automation tests | ||
run: | | ||
echo 'Run automation tests' |