CI: build container
Some checks failed
/ test (push) Failing after 9s

This commit is contained in:
phil 2024-12-06 01:47:03 +01:00
parent 3cad00d336
commit b75e2e9971
2 changed files with 36 additions and 2 deletions

View file

@ -30,7 +30,41 @@ jobs:
- name: Build wheel - name: Build wheel
run: uv build --wheel run: uv build --wheel
- name: Publish to home - name: Publish Python package (home)
env: env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }} 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 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 }}

View file

@ -1,6 +1,6 @@
[project] [project]
name = "sms_handler" name = "sms_handler"
version = "0.0.9" version = "0.0.10"
#dynamic = ["version"] #dynamic = ["version"]
description = "Listen to messages from the SMS Forwarder app on Android and send mail" description = "Listen to messages from the SMS Forwarder app on Android and send mail"
readme = "README.md" readme = "README.md"