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 f713609 commit 5fef638
Showing 1 changed file with 39 additions and 36 deletions.
75 changes: 39 additions & 36 deletions .github/workflows/static-vol-selfserve-build-deploy.yaml
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:
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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'

0 comments on commit 5fef638

Please sign in to comment.