test
All checks were successful
Build Project / test (push) Successful in 5m55s

This commit is contained in:
2025-02-06 21:57:15 +00:00
parent 0257434b26
commit 246194b8dd

View File

@@ -45,14 +45,23 @@ jobs:
run: |
VERSION=$(grep '^version' Cargo.toml | head -n 1 | cut -d ' ' -f 3 | tr -d '"')
echo "VERSION=$VERSION" >> $GITEA_ENV
- name: Test
run: echo $VERSION
- name: Extract Version from Cargo.toml
id: cargo_version
run: |
VERSION=$(grep '^version' Cargo.toml | head -n 1 | cut -d ' ' -f 3 | tr -d '"')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Test1
run: echo ${{ env.VERSION }}
- name: Test2
run: echo ${{ VERSION }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: gitea.maiertobi.de/tobimai/iot:$VERSION
tags: gitea.maiertobi.de/tobimai/iot:${{ env.VERSION }}