Skip to content

Commit

Permalink
Deploy workflow: lowercase IMAGE_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
camuffo committed Nov 18, 2024
1 parent 89d654b commit 1939dbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/k8s-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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: |
Expand Down

0 comments on commit 1939dbf

Please sign in to comment.