mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-15 10:37:29 +08:00
Merge pull request #191 from RiverOnVenus/lowercase-patch
fix: ensure GHCR image tags use lowercase repository owner
This commit is contained in:
10
.github/workflows/docker-image.yml
vendored
10
.github/workflows/docker-image.yml
vendored
@@ -26,6 +26,10 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set lowercase repository owner
|
||||||
|
id: lowercase
|
||||||
|
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -34,8 +38,8 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/moontv:latest
|
ghcr.io/${{ steps.lowercase.outputs.owner }}/moontv:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/moontv:${{ github.sha }}
|
ghcr.io/${{ steps.lowercase.outputs.owner }}/moontv:${{ github.sha }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
@@ -45,4 +49,4 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
retain_days: 0
|
retain_days: 0
|
||||||
keep_minimum_runs: 2
|
keep_minimum_runs: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user