Skip to content

Commit a7b34bc

Browse files
committed
add build and push docker image CI step
1 parent 34a8bfc commit a7b34bc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yaml

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

0 commit comments

Comments
 (0)