fix variable use
This commit is contained in:
1 parent
1558e213d2
commit
23377b2ccb
1 file changed
+4
-6
@@ -21,21 +21,19 @@ jobs:
|
|||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
env:
|
env:
|
||||||
REGESTRY: eiche:3000
|
REGESTRY: eiche:3000
|
||||||
IMAGE: ${{ GITHUB_REPOSITORY }}
|
|
||||||
run: |
|
run: |
|
||||||
# Build the image with the commit hash tag
|
# Build the image with the commit hash tag
|
||||||
docker build -t ${REGISTRY}/${IMAGE}:${GITHUB_RUN_NUMBER} .
|
docker build -t ${REGISTRY}/${{ gitea.repository }}:${GITHUB_RUN_NUMBER} .
|
||||||
|
|
||||||
# Tag the same image as "latest"
|
# Tag the same image as "latest"
|
||||||
docker tag ${REGISTRY}/${IMAGE}:${GITHUB_RUN_NUMBER} ${REGISTRY}/${IMAGE}:latest
|
docker tag ${REGISTRY}/${{ gitea.repository }}:${GITHUB_RUN_NUMBER} ${REGISTRY}/${{ gitea.repository }}:latest
|
||||||
|
|
||||||
- name: Push Docker Images
|
- name: Push Docker Images
|
||||||
env:
|
env:
|
||||||
REGESTRY: eiche:3000
|
REGESTRY: eiche:3000
|
||||||
IMAGE: ${{ GITHUB_REPOSITORY }}
|
|
||||||
run: |
|
run: |
|
||||||
docker push ${REGISTRY}/${IMAGE}:${GITHUB_RUN_NUMBER}
|
docker push ${REGISTRY}/${{ gitea.repository }}:${GITHUB_RUN_NUMBER}
|
||||||
docker push ${REGISTRY}/${IMAGE}:latest
|
docker push ${REGISTRY}/${{ gitea.repository }}:latest
|
||||||
|
|
||||||
- name: Log out from registry
|
- name: Log out from registry
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||