diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eac00336..6dc579122 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ -name: build romm image +name: Build and Push Docker Image on: workflow_dispatch: inputs: version: - description: "romm version" + description: "Release version" required: true type: string @@ -19,19 +19,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Set environment variables - run: | - CURRENT_RC_VERSION=$(wget -q -O - "https://hub.docker.com/v2/repositories/zurdi15/romm/tags?page_size=2" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep "dev-${{ inputs.version }}-rc" | cut -d "-" -f 3 | cut -d "." -f 2) - [[ -z $CURRENT_RC_VERSION ]] && CURRENT_RC_VERSION=0 - NEXT_RC_VERSION="$(($CURRENT_RC_VERSION + 1))" - echo "VERSION_PREFIX=${{ github.ref != format('refs/heads/{0}', 'release') && 'dev-' || '' }}" >> $GITHUB_ENV - echo "VERSION_SUFFIX=${{ github.ref == format('refs/heads/{0}', 'master') && '-rc.$NEXT_RC_VERSION' || '' }}" >> $GITHUB_ENV - - - name: Set version - run: | - version=${{ env.VERSION_PREFIX }}${{ inputs.version }}${{ env.VERSION_SUFFIX }} - sed -i 's//'"${version}"'/' backend/__version__.py - - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -58,17 +45,13 @@ jobs: images: | name=zurdi15/romm name=ghcr.io/zurdi15/romm - flavor: | - # latest on release branch, prefix dev on other branches - latest=true - prefix=${{ env.VERSION_PREFIX }},onlatest=true - suffix=${{ env.VERSION_SUFFIX }},onlatest=false tags: | type=raw,value=${{ inputs.version }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'release') }} labels: | org.opencontainers.image.version=${{ inputs.version }} org.opencontainers.image.title="zurdi15/romm" - org.opencontainers.image.description="RomM (stands for Rom Manager) is a game library manager focused in retro gaming. Manage and organize all of your games from a web browser" + org.opencontainers.image.description="RomM (ROM Manager) allows you to scan, enrich, and browse your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes and custom tags, RomM is a must-have for anyone who plays on emulators." org.opencontainers.image.licenses="GPL-3.0" - name: Build image uses: docker/build-push-action@v4 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0fd6520cf..f22e0566e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,4 +1,4 @@ -name: run pytest +name: Run Pytest on: pull_request: diff --git a/backend/__version__.py b/backend/__version__.py index cc4a13849..61a6551fc 100644 --- a/backend/__version__.py +++ b/backend/__version__.py @@ -1 +1 @@ -__version__ = '' +__version__ = '3.0.0-rc.2'