This commit is contained in:
@@ -18,20 +18,25 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Extract registry hostname
|
||||
id: registry
|
||||
run: echo "hostname=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ gitea.server_url }}
|
||||
registry: ${{ steps.registry.outputs.hostname }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ gitea.server_url }}/${{ gitea.repository }}/parentzone-downloader
|
||||
images: ${{ steps.registry.outputs.hostname }}/${{ gitea.repository }}/parentzone-downloader
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=sha,prefix={{branch}}-
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
@@ -47,5 +52,5 @@ jobs:
|
||||
|
||||
- name: Test Docker image
|
||||
run: |
|
||||
docker run --rm ${{ gitea.server_url }}/${{ gitea.repository }}/parentzone-downloader:latest python --version
|
||||
docker run --rm ${{ gitea.server_url }}/${{ gitea.repository }}/parentzone-downloader:latest ls -la /app
|
||||
docker run --rm ${{ steps.registry.outputs.hostname }}/${{ gitea.repository }}/parentzone-downloader:latest python --version
|
||||
docker run --rm ${{ steps.registry.outputs.hostname }}/${{ gitea.repository }}/parentzone-downloader:latest ls -la /app
|
||||
|
||||
Reference in New Issue
Block a user