Skip to content

Commit baea361

Browse files
committed
Add action to deploy to Docker Hub on tag
1 parent 6a6a11f commit baea361

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- v*
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Login to Docker Hub
14+
uses: docker/login-action@v3
15+
with:
16+
username: ${{ secrets.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
18+
- name: Build and push
19+
uses: docker/build-push-action@v6
20+
with:
21+
push: true
22+
tags: ahmig/vipera:${{ github.ref_name }}

0 commit comments

Comments
 (0)