Skip to content

Commit 928c3f4

Browse files
committed
add docker image release workflow
Signed-off-by: hexilee <[email protected]>
1 parent 1da37b2 commit 928c3f4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/publish-image.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Docker image
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
push:
9+
name: Push Docker image to Docker Hub
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
- name: Push to Docker Hub
15+
uses: docker/build-push-action@v1
16+
with:
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
19+
repository: hexilee/tifs
20+
tag_with_ref: true

0 commit comments

Comments
 (0)