Skip to content

Commit 25e7bf7

Browse files
committed
feat(ci): retrieve and use version from package.json in Docker build
1 parent 28ae6f3 commit 25e7bf7

File tree

3 files changed

+7
-107
lines changed

3 files changed

+7
-107
lines changed

.github/workflows/build-docker-on-demand.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
with:
2323
ref: ${{ github.event.inputs.commit_id }}
2424

25+
- name: Get Version
26+
id: get_version
27+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
28+
2529
- name: Set up Docker Buildx
2630
uses: docker/setup-buildx-action@v3
2731

@@ -41,5 +45,6 @@ jobs:
4145
tags: |
4246
ghcr.io/flxbl-io/sfp-rc:review
4347
build-args: |
44-
GIT_COMMIT==${{ github.event.inputs.commit_id }}
45-
SF_COMMIT_ID=${{ github.event.inputs.commit_id }}
48+
GIT_COMMIT=${{ github.event.inputs.commit_id }}
49+
SF_COMMIT_ID=${{ github.event.inputs.commit_id }}
50+
SFP_VERSION=${{ steps.get_version.outputs.version }}

.github/workflows/buildPackages.yml

-58
This file was deleted.

.github/workflows/tagDockerImage.yml

-47
This file was deleted.

0 commit comments

Comments
 (0)