ci: convert repository name to lowercase for Docker image tags
Build and Push Docker Image / build-and-push (push) Successful in 10m59s
Build and Push Docker Image / build-and-push (push) Successful in 10m59s
This commit is contained in:
@@ -14,6 +14,11 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
- name: Set lower case owner/repository
|
||||
id: repo_name
|
||||
run: |
|
||||
echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -29,4 +34,6 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ gitea.repository }}:latest
|
||||
tags: |
|
||||
${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:latest
|
||||
${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:${{ gitea.sha }}
|
||||
|
||||
Reference in New Issue
Block a user