Update push-docker.yml
This commit is contained in:
parent
e659f11f05
commit
87f0d6930e
1 changed files with 6 additions and 1 deletions
7
.github/workflows/push-docker.yml
vendored
7
.github/workflows/push-docker.yml
vendored
|
@ -76,6 +76,10 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
|
||||
- name: Convert repository owner to lowercase
|
||||
id: repoowner
|
||||
run: echo "::set-output name=lowercase::$(echo ${{ github.repository_owner }} | awk '{print tolower($0)}')"
|
||||
|
||||
- name: Build and push Dockerfile-ultralite
|
||||
uses: docker/build-push-action@v4.0.0
|
||||
with:
|
||||
|
@ -86,7 +90,7 @@ jobs:
|
|||
cache-to: type=gha,mode=max
|
||||
tags: |
|
||||
${{ secrets.DOCKER_HUB_USERNAME }}/s-pdf:ultra-light-latest
|
||||
ghcr.io/${{ github.repository_owner.toLowerCase() }}/s-pdf:ultra-light-latest
|
||||
ghcr.io/${{ steps.repoowner.outputs.lowercase }}/s-pdf:ultra-light-latest
|
||||
labels: |
|
||||
${{ steps.meta.outputs.labels }}
|
||||
type=raw,value=ultra-light-latest,enable=${{ github.ref == 'refs/heads/master' }}
|
||||
|
@ -94,3 +98,4 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64/v8
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue