Skip to content

Commit

Permalink
Shorten checksum in app name to 18 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Sep 23, 2024
1 parent a074ccc commit feea606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ephemeral-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
id: checksum
run: |
CHECKSUM=$(echo -n '${{ inputs.repositoryName }}-${{ steps.jira-ticket.outputs.jiraTicketIdLc }}' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | sed 's/--/-/g' | sed 's/^-//;s/-$//' | cut -c1-31 | md5sum | cut -d' ' -f1 | sed 's/^\([0-9]\)/a\1/')
SHORT_CHECKSUM=${CHECKSUM:0:20}
SHORT_CHECKSUM=${CHECKSUM:0:18}
CONTAINER_APP_NAME="${SHORT_CHECKSUM}-${{ steps.jira-ticket.outputs.jiraTicketIdLc }}"
echo "containerAppName=${CONTAINER_APP_NAME}" >> $GITHUB_OUTPUT
outputs:
Expand Down

0 comments on commit feea606

Please sign in to comment.