diff --git a/.github/workflows/A2_Part1.yml b/.github/workflows/A2_Part1.yml index 5658303..b5d1a75 100644 --- a/.github/workflows/A2_Part1.yml +++ b/.github/workflows/A2_Part1.yml @@ -7,13 +7,9 @@ on: branches: [ "main" ] jobs: - build_and_push_docker_image: - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.github/workflows/A2_Part2.yml b/.github/workflows/A2_Part2.yml index dbc9c4d..94715cb 100644 --- a/.github/workflows/A2_Part2.yml +++ b/.github/workflows/A2_Part2.yml @@ -1,16 +1,15 @@ name: CD Pipeline | Pull and Deploy Docker Container & Run Automated Tests on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + workflow_run: + workflow: ["CI Pipeline | Build Docker Image"] + types: + - completed jobs: - - deploy: + deploy_and_run_automated_tests: runs-on: ubuntu-latest - + needs: [build_and_push_docker_image] steps: - name: Checkout code uses: actions/checkout@v3