Try to fix CI

This commit is contained in:
BlueGradientHorizon 2026-04-20 20:42:44 +03:00
parent 07e4247749
commit 0830cd82fc
2 changed files with 23 additions and 4 deletions

View file

@ -30,11 +30,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Lowercase repository name
id: lower
run: |
REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "repo=$REPO" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .github/docker/ci
push: true
tags: ghcr.io/${{ github.repository }}/ci:latest
tags: ghcr.io/${{ steps.lower.outputs.repo }}/ci:latest
cache-from: type=gha
cache-to: type=gha,mode=max

View file

@ -12,10 +12,21 @@ permissions:
packages: read
jobs:
setup:
runs-on: ubuntu-latest
outputs:
image_name: ${{ steps.lower.outputs.repo }}
steps:
- id: lower
run: |
REPO=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "repo=$REPO" >> "$GITHUB_OUTPUT"
lint:
needs: setup
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}/ci:latest
image: ghcr.io/${{ needs.setup.outputs.image_name }}/ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
@ -107,9 +118,10 @@ jobs:
if-no-files-found: error
zygisk:
needs: setup
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}/ci:latest
image: ghcr.io/${{ needs.setup.outputs.image_name }}/ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
@ -148,9 +160,10 @@ jobs:
if-no-files-found: error
lsposed:
needs: setup
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}/ci:latest
image: ghcr.io/${{ needs.setup.outputs.image_name }}/ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}