Skip to content

fix: fix crash error #167

fix: fix crash error

fix: fix crash error #167

Workflow file for this run

name: Docker Image CI (Dev)
on:
push:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate version
id: version
run: |
# Generate dev version: 0.0.0-dev.YYYYMMDD.HHMMSS.shortsha
DATE_VERSION=$(date +%Y%m%d.%H%M%S)
SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
VERSION="0.0.0-dev.${DATE_VERSION}.${SHORT_SHA}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Generated version: $VERSION"
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GHCR}}
- name: Build and Push the Docker image
run: |
VERSION=${{ steps.version.outputs.version }}
docker build ./TelegramDownloader -f ./TelegramDownloader/Dockerfile \
--build-arg VERSION=$VERSION \
--tag ghcr.io/mateof/telegramfilemanager:dev_$VERSION \
--tag ghcr.io/mateof/telegramfilemanager:dev_latest
docker push ghcr.io/mateof/telegramfilemanager:dev_$VERSION
docker push ghcr.io/mateof/telegramfilemanager:dev_latest