Merge pull request #107 from vaaski/depfu/batch_all/pnpm/2024-12-11 #45
This file contains 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: Deploy Images to GHCR | |
on: | |
push: | |
branches: | |
- 2024 | |
workflow_dispatch: | |
jobs: | |
push-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout GitHub Action" | |
uses: actions/checkout@v4 | |
- name: "Setup Node 20" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: "Install dependencies" | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
run_install: | | |
- args: [--frozen-lockfile] | |
- name: "Run typecheck" | |
run: pnpm run typecheck | |
- name: "Run eslint" | |
run: pnpm run lint | |
- name: "Login to GitHub Container Registry" | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: "Build Image" | |
run: | | |
docker build . --tag ghcr.io/vaaski/telegram-ytdl:latest | |
docker push ghcr.io/vaaski/telegram-ytdl:latest |