Skip to content

Commit

Permalink
ci: a push to main branch results to latest container
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Apr 15, 2024
1 parent 0b34d8b commit 9162d71
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Upload Python Package and Docker Container

on:
push:
branches:
- main
release:
types:
- created
Expand All @@ -10,7 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -28,6 +30,7 @@ jobs:
poetry version "${TAG##*v}"
- name: Build and publish
if: github.event_name == 'release'
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
Expand All @@ -51,5 +54,7 @@ jobs:
with:
file: Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
latest
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 9162d71

Please sign in to comment.