fix: use macos-15 and stable NuGet source #36
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Image CI (Release) | |
| on: | |
| push: | |
| tags: [ 'v*.*.*' ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Extract version from tag | |
| id: version | |
| run: | | |
| # Remove 'v' prefix from tag (v1.2.3 -> 1.2.3) | |
| VERSION=${GITHUB_REF_NAME#v} | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Extracted 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 Full Image (with FFmpeg) | |
| run: | | |
| VERSION=${{ steps.version.outputs.version }} | |
| echo "Building full image with FFmpeg support..." | |
| docker build ./TelegramDownloader -f ./TelegramDownloader/Dockerfile \ | |
| --build-arg VERSION=$VERSION \ | |
| --build-arg INCLUDE_FFMPEG=true \ | |
| --tag ghcr.io/mateof/telegramfilemanager:${{github.ref_name}} \ | |
| --tag ghcr.io/mateof/telegramfilemanager:latest | |
| docker push ghcr.io/mateof/telegramfilemanager:${{github.ref_name}} | |
| docker push ghcr.io/mateof/telegramfilemanager:latest | |
| - name: Build and Push Lite Image (without FFmpeg) | |
| run: | | |
| VERSION=${{ steps.version.outputs.version }} | |
| echo "Building lite image without FFmpeg..." | |
| docker build ./TelegramDownloader -f ./TelegramDownloader/Dockerfile \ | |
| --build-arg VERSION=$VERSION \ | |
| --build-arg INCLUDE_FFMPEG=false \ | |
| --tag ghcr.io/mateof/telegramfilemanager:${{github.ref_name}}-lite \ | |
| --tag ghcr.io/mateof/telegramfilemanager:latest-lite | |
| docker push ghcr.io/mateof/telegramfilemanager:${{github.ref_name}}-lite | |
| docker push ghcr.io/mateof/telegramfilemanager:latest-lite |