Skip to content

Commit

Permalink
Upload image to ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
dardanx committed Nov 7, 2024
1 parent 5709c2b commit c5875bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- dev

env:
BRANCH_NAME: ${{ github.ref_name }}
Expand Down Expand Up @@ -40,10 +41,10 @@ jobs:
- name: Run tests
run: poetry run pytest tests/

build-and-upload-docker-image:
build-docker-image:
needs: build-and-test
runs-on: ubuntu-latest
if: github.base_ref == 'main' || github.base_ref == 'dev'
if: (github.base_ref == 'main' || github.base_ref == 'dev') && github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit c5875bb

Please sign in to comment.