Update Docker build workflow to enforce lowercase repository names #2
@@ -34,7 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
IMAGE="${{ steps.registry.outputs.host }}/${{ github.repository }}"
|
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
|
IMAGE="${{ steps.registry.outputs.host }}/$REPO_LOWER"
|
||||||
TAG="${{ steps.meta.outputs.tag }}"
|
TAG="${{ steps.meta.outputs.tag }}"
|
||||||
docker build -t "$IMAGE:$TAG" -t "$IMAGE:latest" .
|
docker build -t "$IMAGE:$TAG" -t "$IMAGE:latest" .
|
||||||
docker push "$IMAGE:$TAG"
|
docker push "$IMAGE:$TAG"
|
||||||
|
|||||||
Reference in New Issue
Block a user