diff --git a/.github/workflows/releases.yml b/.github/workflows/release.yml similarity index 62% rename from .github/workflows/releases.yml rename to .github/workflows/release.yml index 6d780f8..b866453 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/release.yml @@ -3,42 +3,40 @@ name: Docker Image CI on: push: tags: - - '*' + - '*' jobs: - docker-releases: - runs-on: ubuntu-latest + steps: - name: Get release version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: downcase username + + - name: Downcase username run: echo "lower_actor=${GITHUB_ACTOR,,}" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v4 - + - name: Set up QEMU uses: docker/setup-qemu-action@v3 - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker images uses: docker/build-push-action@v6.9.0 with: - context: ./ - push: true - tags: | - ghcr.io/${{ env.lower_actor }}/aperisolve:latest - ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }} - \ No newline at end of file + context: ./ + push: true + tags: | + ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }} + ghcr.io/${{ env.lower_actor }}/aperisolve:latest diff --git a/.gitignore b/.gitignore index 8a70dc2..7b0fdd9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__/ .mypy_cache/ results/ +.vscode diff --git a/aperisolve/models.py b/aperisolve/models.py index e9f82b6..3f13c4d 100644 --- a/aperisolve/models.py +++ b/aperisolve/models.py @@ -78,7 +78,7 @@ def fill_ihdr_db() -> None: if db.session.query(IHDR.iid).first() is not None: print("IHDR table already populated, skipping fill.") return - + # Standard PNG IHDR parameters resolutions = get_resolutions() bit_color_pairs = get_valid_depth_color_pairs() @@ -155,4 +155,3 @@ def init_db(app: Flask) -> None: print("Running as worker, skipping IHDR table fill.") else: fill_ihdr_db() -