Skip to content

Commit 5032b62

Browse files
committed
feat: use on release for docker-ci
1 parent 979662a commit 5032b62

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/docker-ci.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: fedimint-ui-docker
22

33
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+
117
jobs:
128
docker:
139
runs-on: ubuntu-latest
@@ -25,13 +21,12 @@ jobs:
2521
images: |
2622
fedimintui/fedimint-ui
2723
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}}
3127
type=sha
3228
3329
- name: Login to Docker Hub
34-
if: startsWith(github.ref, 'refs/tags/v')
3530
uses: docker/login-action@v2
3631
with:
3732
username: fedimintui
@@ -41,17 +36,15 @@ jobs:
4136
uses: docker/build-push-action@v4
4237
with:
4338
file: Dockerfile
44-
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
39+
push: true
4540
tags: ${{ steps.meta.outputs.tags }}
4641
labels: ${{ steps.meta.outputs.labels }}
4742

4843
- name: Checkout repository content
49-
if: startsWith(github.ref, 'refs/tags/v')
5044
uses: actions/checkout@v4
5145

5246
# This workflow requires the repository content to be locally available to read the README
5347
- name: Update the Docker Hub description
54-
if: startsWith(github.ref, 'refs/tags/v')
5548
uses: peter-evans/dockerhub-description@v3
5649
with:
5750
username: fedimintui

turbo.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"cache": false
3838
},
3939
"lint": {
40-
"dependsOn": ["^build"]
40+
"outputs": [],
41+
"dependsOn": ["^build"],
42+
"cache": false
4143
},
4244
"dev": {
4345
"cache": false,

0 commit comments

Comments
 (0)