mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Publish docker image
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user