Skip to content

Commit

Permalink
debug: why isn't this added?
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Dec 13, 2024
1 parent d263978 commit 9755b75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
TAG="$(git describe --tags --always | awk -F"-" '{if (NF>1) {print substr($1, 2)".post"$2} else {print substr($1, 2)}}')"
echo "__version__ = \"$TAG\"" > asu/__init__.py
poetry version "$TAG"
cat pyproject.toml
cat asu/__init__.py
- name: Build and publish
- name: Build and publish PyPi package
if: github.event_name == 'release'
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
Expand All @@ -48,6 +50,7 @@ jobs:
latest
- name: Login to DockerHub
if: github.repository_owner == 'openwrt'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -57,6 +60,6 @@ jobs:
uses: docker/build-push-action@v5
with:
file: Containerfile
push: true
push: github.repository_owner == 'openwrt'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ RUN poetry config virtualenvs.create false \

COPY ./asu/ ./asu/

RUN cat /app/asu/__init__.py

CMD uvicorn --host 0.0.0.0 'asu.main:app'

0 comments on commit 9755b75

Please sign in to comment.