Skip to content

Commit d021d4e

Browse files
authored
Create docker-image.yml
1 parent 4f46e66 commit d021d4e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

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

0 commit comments

Comments
 (0)