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: |
|
||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||
# 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"
|
||||
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
|
||||
env:
|
||||
REGESTRY: eiche:3000
|
||||
run: |
|
||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||
docker push ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
||||
docker push ${REGISTRY}/${REPOSITORY_LC}:latest
|
||||
docker push eiche:3000/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
||||
docker push eiche:3000/${REPOSITORY_LC}:latest
|
||||
|
||||
- name: Log out from registry
|
||||
if: always()
|
||||
|
||||