Skip to content

Commit 8ee4dce

Browse files
committed
chore: add deploy workflow
1 parent 240b091 commit 8ee4dce

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: deploy-main
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build-and-push:
14+
name: Build and Push Image
15+
runs-on: ubuntu-24.04
16+
permissions:
17+
contents: read
18+
packages: write
19+
env:
20+
REGISTRY: ghcr.io
21+
IMAGE_NAME: ${{ github.repository }}
22+
steps:
23+
- uses: actions/checkout@v6
24+
- uses: docker/setup-buildx-action@v3
25+
- uses: docker/login-action@v3
26+
with:
27+
registry: ${{ env.REGISTRY }}
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- uses: docker/build-push-action@v6
32+
with:
33+
context: .
34+
file: ./Dockerfile
35+
push: true
36+
tags: |
37+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
38+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
39+
cache-from: type=gha
40+
cache-to: type=gha,mode=max

cspell-words.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
addrepo
22
autoincrement
3+
buildx
34
fullstacksjs
45
gitmessage
56
grammyjs
67
libsql
78
listcontributors
89
listrepos
10+
lyja
911
nodenext
1012
removerepo
1113
Safaeirad
1214
smee
13-
lyja
1415
unmute

0 commit comments

Comments
 (0)