We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2178f8d commit 8774986Copy full SHA for 8774986
.github/workflows/docker-build-publish.yml
@@ -0,0 +1,34 @@
1
+name: Build and Publish Docker Image
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v3
17
18
+ - name: Set up Docker Buildx
19
+ uses: docker/setup-buildx-action@v2
20
21
+ - name: Log in to GitHub Container Registry
22
+ uses: docker/login-action@v2
23
+ with:
24
+ registry: ghcr.io
25
+ username: ${{ github.actor }}
26
+ password: ${{ secrets.GITHUB_TOKEN }}
27
28
+ - name: Build and push Docker image
29
+ uses: docker/build-push-action@v4
30
31
+ context: .
32
+ file: ./Dockerfile
33
+ push: true
34
+ tags: ghcr.io/${{ github.repository_owner }}/bingo:latest
0 commit comments