Normalize repo name V2
This commit is contained in:
1 parent
63c26f6606
commit
cd157e1eef
1 file changed
+2
-4
@@ -9,10 +9,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Normalize repo name
|
|
||||||
run: |
|
|
||||||
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
|
||||||
echo "REPOSITORY_LC=REPOSITORY_LC" >> $GITHUB_ENV
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Registry
|
- name: Login to Registry
|
||||||
@@ -26,6 +22,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REGESTRY: eiche:3000
|
REGESTRY: eiche:3000
|
||||||
run: |
|
run: |
|
||||||
|
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 ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} .
|
||||||
|
|
||||||
@@ -36,6 +33,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REGESTRY: eiche:3000
|
REGESTRY: eiche:3000
|
||||||
run: |
|
run: |
|
||||||
|
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
docker push ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
docker push ${REGISTRY}/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
|
||||||
docker push ${REGISTRY}/${REPOSITORY_LC}:latest
|
docker push ${REGISTRY}/${REPOSITORY_LC}:latest
|
||||||
|
|
||||||
|
|||||||