From 3664914eacbac471345706f2a0c992332e887383 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..b087f98 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" ]' + - name: lowercaseImageName + 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.lowercaseImageName.outputs.IMAGE_NAME_LC }}:${{ env.BRANCH_NAME }} - name: "Write to $KUBECONFIG" run: |