mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
update build script
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -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>/'"${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
|
||||
|
||||
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: run pytest
|
||||
name: Run Pytest
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = '<version>'
|
||||
__version__ = '3.0.0-rc.2'
|
||||
|
||||
Reference in New Issue
Block a user