fix: update Docker image tags to use lowercase repository owner and improve pull command output
This commit is contained in:
@@ -20,6 +20,14 @@ jobs:
|
|||||||
echo "📁 Repository contents:"
|
echo "📁 Repository contents:"
|
||||||
ls -la ${{ gitea.workspace }}
|
ls -la ${{ gitea.workspace }}
|
||||||
|
|
||||||
|
- name: Prepare registry path
|
||||||
|
id: prep
|
||||||
|
run: |
|
||||||
|
# Convert repository owner to lowercase
|
||||||
|
REPO_OWNER=$(echo "${{ gitea.repository_owner }}" | tr '[:upper:]' '[:lower:]')
|
||||||
|
echo "repo_owner=${REPO_OWNER}" >> $GITHUB_OUTPUT
|
||||||
|
echo "📝 Repository owner (lowercase): ${REPO_OWNER}"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@@ -37,8 +45,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: git.eurekin.pl/${{ gitea.repository_owner }}/hello-gitea:latest,git.eurekin.pl/${{ gitea.repository_owner }}/hello-gitea:${{ gitea.sha }}
|
tags: |
|
||||||
|
git.eurekin.pl/${{ steps.prep.outputs.repo_owner }}/hello-gitea:latest
|
||||||
|
git.eurekin.pl/${{ steps.prep.outputs.repo_owner }}/hello-gitea:${{ gitea.sha }}
|
||||||
|
|
||||||
- run: echo "📦 Docker image has been pushed to the registry!"
|
- run: echo "📦 Docker image has been pushed to the registry!"
|
||||||
- run: echo "🎯 You can pull it with docker pull git.eurekin.pl/${{ gitea.repository_owner }}/hello-gitea latest"
|
- run: echo "🎯 You can pull it with: docker pull git.eurekin.pl/${{ steps.prep.outputs.repo_owner }}/hello-gitea:latest"
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
Reference in New Issue
Block a user