From 767341a7697d4ea635a43c3d91bd54367aff7fa2 Mon Sep 17 00:00:00 2001 From: zurdi Date: Mon, 14 Aug 2023 00:16:47 +0200 Subject: [PATCH] .romm-version workflow reverted --- .github/workflows/build.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e8e03e75..d1ab15483 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,12 @@ name: build romm image -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + version: + description: 'romm version' + required: true + type: string jobs: build: @@ -13,11 +19,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - name: Set environment variables - shell: bash - run: | - echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV - VERSION=$(cat .romm-version) - echo "VERSION=$VERSION" >> $GITHUB_ENV + run: echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx @@ -45,9 +47,9 @@ jobs: latest=true prefix=${{ github.ref != format('refs/heads/{0}', 'release') && 'dev-' || '' }},onlatest=true tags: | - type=raw,value=${{ env.VERSION }} + type=raw,value=${{ inputs.version }} labels: | - org.opencontainers.image.version=${{ env.VERSION }} + org.opencontainers.image.version=${{ inputs.version }} - name: Build image uses: docker/build-push-action@v4 with: