mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-05-01 16:12:17 +00:00
Try to fix CI
This commit is contained in:
parent
07e4247749
commit
0830cd82fc
2 changed files with 23 additions and 4 deletions
8
.github/workflows/ci-image.yml
vendored
8
.github/workflows/ci-image.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue