Skip to content

Commit

Permalink
fix: update CI/CD Pipeline to have CD run after CI has finished running
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbie-goober committed Aug 4, 2024
1 parent dc3c4cc commit 72a6b83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/A2_Part1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/A2_Part2.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 72a6b83

Please sign in to comment.