From 1939dbff60942c7af6c4b4042bf97c26a66630a2 Mon Sep 17 00:00:00 2001 From: Francesco Camuffo Date: Mon, 18 Nov 2024 11:15:29 +0100 Subject: [PATCH] Deploy workflow: lowercase IMAGE_NAME --- .github/workflows/k8s-deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/k8s-deploy.yml b/.github/workflows/k8s-deploy.yml index fb4ca5a..2c5b228 100644 --- a/.github/workflows/k8s-deploy.yml +++ b/.github/workflows/k8s-deploy.yml @@ -28,6 +28,9 @@ jobs: - name: Branch safety check run: '[ "${{ env.BRANCH_NAME }}" = "development" ] || [ "${{ env.BRANCH_NAME }}" = "stable" ]' + - id: lowercase_image_name + run: echo "IMAGE_NAME_LC=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> ${GITHUB_OUTPUT} + - name: Checkout uses: actions/checkout@v4 @@ -45,7 +48,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }} + tags: ${{ env.REGISTRY }}/${{ steps.lowercase_image_name.outputs.IMAGE_NAME_LC }}:${{ env.BRANCH_NAME }} - name: "Write to $KUBECONFIG" run: |