We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a9aa0 commit dc962d0Copy full SHA for dc962d0
.github/workflows/publish-container.yaml
@@ -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
23
+ context: .
24
+ push: true
25
+ tags: ghcr.io/${{ github.repository }}/server:latest
0 commit comments