-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (36 loc) · 1004 Bytes
/
deploy-ghcr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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