Skip to content

Commit 1ba6c26

Browse files
authored
Added workflow to build & publish image (#53)
1 parent 40130e1 commit 1ba6c26

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker.yml

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

0 commit comments

Comments
 (0)