1
1
name : fedimint-ui-docker
2
2
3
3
on :
4
- push :
5
- paths :
6
- - package.json
7
- - yarn.lock
8
- - .github/workflows/fedimint-ui-docker.yml
9
- - apps/router/**
10
- - packages/**
4
+ release :
5
+ types : [published]
6
+
11
7
jobs :
12
8
docker :
13
9
runs-on : ubuntu-latest
@@ -25,13 +21,12 @@ jobs:
25
21
images : |
26
22
fedimintui/fedimint-ui
27
23
tags : |
28
- type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
29
- type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
30
- type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
24
+ type=raw,value=latest
25
+ type=semver,pattern={{version}}
26
+ type=semver,pattern={{major}}.{{minor}}
31
27
type=sha
32
28
33
29
- name : Login to Docker Hub
34
- if : startsWith(github.ref, 'refs/tags/v')
35
30
uses : docker/login-action@v2
36
31
with :
37
32
username : fedimintui
@@ -41,17 +36,15 @@ jobs:
41
36
uses : docker/build-push-action@v4
42
37
with :
43
38
file : Dockerfile
44
- push : ${{ startsWith(github.ref, 'refs/tags/v') }}
39
+ push : true
45
40
tags : ${{ steps.meta.outputs.tags }}
46
41
labels : ${{ steps.meta.outputs.labels }}
47
42
48
43
- name : Checkout repository content
49
- if : startsWith(github.ref, 'refs/tags/v')
50
44
uses : actions/checkout@v4
51
45
52
46
# This workflow requires the repository content to be locally available to read the README
53
47
- name : Update the Docker Hub description
54
- if : startsWith(github.ref, 'refs/tags/v')
55
48
uses : peter-evans/dockerhub-description@v3
56
49
with :
57
50
username : fedimintui
0 commit comments