Skip to content

Commit bfaf5f5

Browse files
author
Patrick Schwager
committed
fix parsing of version
1 parent 77c9672 commit bfaf5f5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/ci-main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
contents: read
3030
packages: write
3131
steps:
32-
- uses: actions/checkout@v4
3332
- name: Log in to GitHub Container Registry
3433
uses: docker/login-action@v2
3534
with:
@@ -39,7 +38,7 @@ jobs:
3938
- name: Build and Push Docker images
4039
run: |
4140
modules=("weather-agent news-agent productsearch-agent techspec-agent reportgenerate-agent")
42-
version=$(grep '^version=' $module/gradle.properties | awk -F= '{print $2}')
41+
version=$(grep '^version=' gradle.properties | awk -F= '{print $2}')
4342
for module in "${modules[@]}"; do
4443
docker build --build-arg VERSION=$version -f $module/Dockerfile -t ghcr.io/eclipse-lmos/$module:$version $module
4544
docker push ghcr.io/eclipse-lmos/$module:$version

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Build and Push Docker images
4848
run: |
4949
modules=("weather-agent news-agent productsearch-agent techspec-agent reportgenerate-agent")
50-
version=$(grep '^version=' $module/gradle.properties | awk -F= '{print $2}')
50+
version=$(grep '^version=' gradle.properties | awk -F= '{print $2}')
5151
for module in "${modules[@]}"; do
5252
docker build --build-arg VERSION=$version -f $module/Dockerfile -t ghcr.io/eclipse-lmos/$module:$version $module
5353
docker push ghcr.io/eclipse-lmos/$module:$version

0 commit comments

Comments
 (0)