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
|
||||
|
||||
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
|
||||
|
||||
- name: Login to Registry
|
||||
@@ -26,6 +22,7 @@ jobs:
|
||||
env:
|
||||
REGESTRY: eiche:3000
|
||||
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} .
|
||||
|
||||
@@ -36,6 +33,7 @@ jobs:
|
||||
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
|
||||
|
||||
|
||||