Skip to content

Commit

Permalink
docker build & push fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AleX committed Nov 17, 2024
1 parent 702131f commit 72d8a89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
package_name=$(basename ${{ github.repository }})
commit_date=$(git log -1 --format=%cd --date=format:'%Y%m%d%H%M%S')
sudo docker tag sd_telegram ghcr.io/${{ secrets.username }}/$package_name:$commit_date
sudo docker tag sd_telegram ghcr.io/${{ secrets.username }}/$package_name:latest
# sudo docker push ghcr.io/${{ secrets.username }}/$package_name:$commit_date
sudo docker push ghcr.io/${{ secrets.username }}/$package_name:beta
#sudo docker tag sd_telegram ghcr.io/${{secrets.USERNAME}}/$package_name:$commit_date
sudo docker tag sd_telegram ghcr.io/${{secrets.USERNAME}}/$package_name:beta
# sudo docker push ghcr.io/${{secrets.USERNAME}}/$package_name:$commit_date
sudo docker push ghcr.io/${{secrets.USERNAME}}/$package_name:beta
4 changes: 3 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.10
LABEL maintainer="[email protected]"
LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.source=https://github.com/soaska/sd_telegram
LABEL org.opencontainers.image.description="Beta image for sd_telegram"

WORKDIR /bot
COPY requirements.txt .
Expand Down

0 comments on commit 72d8a89

Please sign in to comment.