ci: compare container version to source instead of hardcoding 1.5.75
This commit is contained in:
1 parent
1b0acfe566
commit
e7696a6a11
1 file changed
+3
-1
@@ -98,7 +98,9 @@ jobs:
|
||||
- name: Verify x64 container binary
|
||||
run: |
|
||||
docker image inspect landwelle-portal:x64-ci --format '{{.Architecture}}' | grep -qx amd64
|
||||
docker run --rm --entrypoint /usr/local/bin/landwelle-portal landwelle-portal:x64-ci --version | grep -qx 'Landwelle v1.5.75'
|
||||
expected_version="$(sed -nE 's/^[[:space:]]*applicationVersion[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/p' main.go | head -n1)"
|
||||
test -n "$expected_version"
|
||||
docker run --rm --entrypoint /usr/local/bin/landwelle-portal landwelle-portal:x64-ci --version | grep -Fx "Landwelle v$expected_version"
|
||||
frontend-static:
|
||||
name: JavaScript and deployment-script checks
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user