Skip to content

Commit 58ab9cf

Browse files
Add ci for dev build
1 parent 8dc94d8 commit 58ab9cf

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci-dev.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: dev-ci
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
docker:
8+
runs-on: ubuntu-latest
9+
steps:
10+
-
11+
name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.head_ref }}
15+
-
16+
name: Docker meta
17+
id: meta
18+
uses: docker/metadata-action@v4
19+
with:
20+
flavor: |
21+
latest=false
22+
images: |
23+
vsyshost/shkeeper
24+
tags: |
25+
type=raw,value=dev-{{branch}}-{{sha}}
26+
-
27+
name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
-
33+
name: Build and push
34+
uses: docker/build-push-action@v4
35+
with:
36+
push: true
37+
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)