Skip to content

Commit f2ca04e

Browse files
committed
[CI] script to deploy docker for lerna version
1 parent 1a2ef64 commit f2ca04e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/deploy-docker.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish Docker image
22
on:
33
push:
4-
tags:
5-
- "*"
4+
branches:
5+
- main
66
workflow_dispatch:
77

88
env:
@@ -30,6 +30,10 @@ jobs:
3030
env:
3131
BASE_URL: "./"
3232

33+
- uses: nyaa8/package-version@v1
34+
with:
35+
path: "packages/gephi-lite/package.json"
36+
3337
- name: Log in to Docker Hub
3438
uses: docker/login-action@v3
3539
with:
@@ -49,7 +53,8 @@ jobs:
4953
context: .
5054
file: ./Dockerfile
5155
push: true
52-
tags: ${{ steps.meta.outputs.tags }}
56+
addLatest: true
57+
tags: ${{ env.PACKAGE_VERSION }}
5358
labels: ${{ steps.meta.outputs.labels }}
5459

5560
- name: Generate artifact attestation

0 commit comments

Comments
 (0)