parent
3cad00d336
commit
b75e2e9971
2 changed files with 36 additions and 2 deletions
|
@ -30,7 +30,41 @@ jobs:
|
|||
- name: Build wheel
|
||||
run: uv build --wheel
|
||||
|
||||
- name: Publish to home
|
||||
- name: Publish Python package (home)
|
||||
env:
|
||||
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
|
||||
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
|
||||
|
||||
- name: Get version
|
||||
id: version
|
||||
run: echo "version=$(.venv/bin/sms-handler --version)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Workaround for bug of podman-login
|
||||
run: |
|
||||
mkdir -p $HOME/.docker
|
||||
echo "{ \"auths\": {} }" > $HOME/.docker/config.json
|
||||
|
||||
- name: Log in to the container registry (with another workaround)
|
||||
uses: actions/podman-login@v1
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
auth_file_path: /tmp/auth.json
|
||||
|
||||
- name: Build the container image
|
||||
uses: actions/buildah-build@v1
|
||||
with:
|
||||
image: sms-handler
|
||||
oci: true
|
||||
labels: sms-handler
|
||||
tags: ${{ steps.version.outputs.version }}
|
||||
containerfiles: |
|
||||
./Containerfile
|
||||
|
||||
- name: Push the image to the registry
|
||||
uses: actions/push-to-registry@v2
|
||||
with:
|
||||
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
||||
image: ssm-handler
|
||||
tags: ${{ steps.version.outputs.version }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "sms_handler"
|
||||
version = "0.0.9"
|
||||
version = "0.0.10"
|
||||
#dynamic = ["version"]
|
||||
description = "Listen to messages from the SMS Forwarder app on Android and send mail"
|
||||
readme = "README.md"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue