Skip to content

Commit cb363a8

Browse files
ci: add release process
1 parent 480b8af commit cb363a8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
tags:
7+
- v*
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
-
14+
name: Checkout
15+
uses: actions/checkout@v2
16+
17+
-
18+
name: Set up QEMU
19+
uses: docker/setup-qemu-action@v1
20+
-
21+
name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v1
23+
-
24+
name: Login to DockerHub
25+
uses: docker/login-action@v1
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
-
30+
name: Set output
31+
id: vars
32+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
33+
-
34+
name: Build and push
35+
uses: docker/build-push-action@v2
36+
with:
37+
context: .
38+
platforms: linux/amd64
39+
push: true
40+
tags: vincenzopalazzo/ln-dashboard:${{ steps.vars.outputs.tag }}

0 commit comments

Comments
 (0)