Publish docker image

This commit is contained in:
sebthom
2022-02-01 07:32:45 +01:00
parent dfc6481541
commit 66f57a0822
3 changed files with 40 additions and 13 deletions

View File

@@ -123,9 +123,9 @@ jobs:
- name: build self-contained executable
run: |
set -eux
pdm run compile
ls -l dist
- name: run self-contained executable
@@ -151,6 +151,17 @@ jobs:
docker run --rm second-hand-friends/kleinanzeigen-bot help
- name: "Publish docker image"
if: startsWith(matrix.os, 'ubuntu') && github.ref == 'refs/heads/main'
run: |
set -eux
echo "${{ github.token }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
image_name="second-hand-friends/kleinanzeigen-bot"
docker image tag $image_name ghcr.io/$image_name
docker push ghcr.io/$image_name
###########################################################
publish-release: