Skip to content

Commit 6930a34

Browse files
Create docker-image.yml
1 parent 3ffe2f2 commit 6930a34

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
-
12+
name: Login to Docker Hub
13+
uses: docker/login-action@v3
14+
with:
15+
username: ${{ vars.DOCKERHUB_USERNAME }}
16+
password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
-
18+
name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
-
21+
name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
-
24+
name: Build and push
25+
uses: docker/build-push-action@v6
26+
with:
27+
push: true
28+
tags: adijaiswal/boardgame11:${{ github.sha }}

0 commit comments

Comments
 (0)