Skip to content

Commit dc962d0

Browse files
committed
feat: Publish container to GitHub registry
1 parent 91a9aa0 commit dc962d0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Publish Docker image
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Log in to GitHub Container Registry
14+
uses: docker/login-action@v3
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Build and push Docker image
21+
uses: docker/build-push-action@v5
22+
with:
23+
context: .
24+
push: true
25+
tags: ghcr.io/${{ github.repository }}/server:latest

0 commit comments

Comments
 (0)