From 5481df4c4356cf8e8daeb8aea61cb4c10c653ec6 Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 9 Aug 2023 22:26:05 +0200 Subject: [PATCH] fixed build workflow version --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a05f9de1..8f6c8691f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,10 +12,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set version - run: VERSION=$(cat .romm-version); sed -i "s//$VERSION/" pyproject.toml frontend/package.json - name: Set environment variables - run: echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV + shell: bash + run: | + echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV + VERSION=$(cat .romm-version) + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Set version + shell: bash + run: sed -i "s//${{ env.VERSION }}/" pyproject.toml frontend/package.json - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx @@ -43,9 +48,9 @@ jobs: latest=true prefix=${{ github.ref != format('refs/heads/{0}', 'release') && 'dev-' || '' }},onlatest=true tags: | - type=raw,value=${{ inputs.version }} + type=raw,value=${{ env.VERSION }} labels: | - org.opencontainers.image.version=${{ inputs.version }} + org.opencontainers.image.version=${{ env.VERSION }} - name: Build image uses: docker/build-push-action@v4 with: