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