Compare commits

..

4 Commits

Author SHA1 Message Date
Raoul Snyman 8cd5c6e9e0 Merge pull request 'Also publish package to PyPI' (#3) from raoul/http2smtp:send-to-pypi into master
ci/woodpecker/push/woodpecker Pipeline was successful Details
Reviewed-on: #3
2023-08-10 04:12:59 +00:00
Raoul Snyman de74307576 Also publish package to PyPI
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-08-09 15:37:11 -07:00
Raoul Snyman afd12e25e6 Merge pull request 'Fix the release Dockerfile by pointing to the correct PyPI index' (#2) from raoul/http2smtp:fix-release-docker into master
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
Reviewed-on: #2
2023-08-09 21:31:06 +00:00
Raoul Snyman 5221271b14 Fix the release Dockerfile by pointing to the correct PyPI index
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2023-08-09 14:30:13 -07:00
2 changed files with 17 additions and 2 deletions

View File

@ -9,7 +9,8 @@ steps:
commands:
- pip install hatch
- hatch run test
publish-package:
publish-local-package:
group: publish-package
image: python:3.11
commands:
- pip install hatch
@ -23,6 +24,20 @@ steps:
- repo: libertytechforce/http2smtp
branch: master
event: tag
publish-pypi-package:
group: publish-package
image: python:3.11
commands:
- pip install hatch
- hatch build
- hatch publish --user $PYPI_USERNAME --auth $PYPI_TOKEN --no-prompt
secrets:
- pypi-username
- pypi-token
when:
- repo: libertytechforce/http2smtp
branch: master
event: tag
nightly-image:
image: docker
commands:

View File

@ -1,6 +1,6 @@
FROM python:3.11-alpine
RUN pip install --extra-index-url https://git.libertytechforce.com/api/packages/raoul/pypi/simple/ http2smtp uvicorn[standard]
RUN pip install --extra-index-url https://git.libertytechforce.com/api/packages/libertytechforce/pypi/simple/ http2smtp uvicorn[standard]
EXPOSE 8000
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "http2smtp.app:app"]