Skip to content

Commit

Permalink
only fetcher uses versioned tags
Browse files Browse the repository at this point in the history
  • Loading branch information
atvaccaro committed Aug 29, 2023
1 parent 1b30a04 commit 26a68a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-dags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ jobs:
python-version: 3.11
- uses: abatilo/actions-poetry@v2
- name: run mypy and pytest
id: test
working-directory: dags
run: |
poetry export --with=dev --without-hashes --format=requirements.txt > requirements.txt
poetry run pip install -r requirements.txt
poetry run mypy .
echo "VERSION=$(poetry version)" >> "$GITHUB_OUTPUT"
# un-comment and move up once we have tests; pytest exits with an exit code if no tests are found
# poetry run pytest
env:
Expand All @@ -36,4 +34,4 @@ jobs:
with:
context: dags
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
tags: 'ghcr.io/jarvusinnovations/transit-data-analytics-demo/dags:${{ steps.test.outputs.VERSION }}'
tags: 'ghcr.io/jarvusinnovations/transit-data-analytics-demo/dags:latest'
4 changes: 3 additions & 1 deletion .github/workflows/build-fetcher-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
python-version: 3.11
- uses: abatilo/actions-poetry@v2
- name: run mypy and pytest
id: test
working-directory: fetcher
run: |
poetry export --with=dev --without-hashes --format=requirements.txt > requirements.txt
poetry run pip install -r requirements.txt
poetry run mypy .
poetry run pytest
echo "VERSION=$(poetry version --short)" >> "$GITHUB_OUTPUT"
env:
RAW_BUCKET: gs://this-does-not-exist-raw
PARSED_BUCKET: gs://this-does-not-exist-parsed
Expand All @@ -33,4 +35,4 @@ jobs:
with:
context: fetcher
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
tags: 'ghcr.io/jarvusinnovations/transit-data-analytics-demo/fetcher:latest'
tags: 'ghcr.io/jarvusinnovations/transit-data-analytics-demo/fetcher:${{ steps.test.outputs.VERSION }}'

0 comments on commit 26a68a6

Please sign in to comment.