Normalize repo name V3
This commit is contained in:
1 parent
cd157e1eef
commit
9b5a85fec7
1 file changed
+4
-4
@@ -24,18 +24,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
# Build the image with the commit hash tag
|
# Build the image with the commit hash tag
|
||||||
docker build -t ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} .
|
docker build -t eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} .
|
||||||
|
|
||||||
# Tag the same image as "latest"
|
# Tag the same image as "latest"
|
||||||
docker tag ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} ${REGISTRY}/${REPOSITORY_LC}:latest
|
docker tag eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} eiche:3000/${REPOSITORY_LC}:latest
|
||||||
|
|
||||||
- name: Push Docker Images
|
- name: Push Docker Images
|
||||||
env:
|
env:
|
||||||
REGESTRY: eiche:3000
|
REGESTRY: eiche:3000
|
||||||
run: |
|
run: |
|
||||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
docker push ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
docker push eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
||||||
docker push ${REGISTRY}/${REPOSITORY_LC}:latest
|
docker push eiche:3000/${REPOSITORY_LC}:latest
|
||||||
|
|
||||||
- name: Log out from registry
|
- name: Log out from registry
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||