Skip to content

Commit 3502c7b

Browse files
fix: Remove redundant docker-image.yaml and fix version reading
- πŸ—‘οΈ Remove inferior docker-image.yaml workflow - πŸ”§ Fix docker-build.yml to read from version file instead of package.json - βœ… Keep only the superior docker-build.yml workflow
1 parent d5eeebe commit 3502c7b

2 files changed

Lines changed: 4 additions & 32 deletions

File tree

β€Ž.github/workflows/docker-build.ymlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
- name: Read version from package.json
18+
- name: Read version from file
1919
id: version
2020
run: |
21-
VERSION=$(node -p "require('./package.json').version")
22-
echo "version=v$VERSION" >> $GITHUB_OUTPUT
23-
echo "Found version: v$VERSION"
21+
VERSION=$(cat version | tr -d '\n' | sed 's/^/v/')
22+
echo "version=$VERSION" >> $GITHUB_OUTPUT
23+
echo "Found version: $VERSION"
2424
2525
- name: Set up Docker Buildx
2626
uses: docker/setup-buildx-action@v3

β€Ž.github/workflows/docker-image.yamlβ€Ž

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
Β (0)