Skip to content

Commit c538e11

Browse files
committed
fix invalid servicename
1 parent 5f4be2d commit c538e11

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ jobs:
4040
4141
# This step is for the deployment of the templates only, safe to delete
4242
- name: Modify deploy.yml
43-
env:
43+
env:
4444
KAMAL_DEPLOY_IP: ${{ secrets.KAMAL_DEPLOY_IP }}
4545
if: env.KAMAL_DEPLOY_IP != null
4646
run: |
47-
sed -i "s/service: my-app/service: ${{ env.repository_name_lower }}/g" config/deploy.yml
47+
SERVICE_NAME=$(echo "${{ env.repository_name_lower }}" | tr '.' '-')
48+
sed -i "s/service: my-app/service: $SERVICE_NAME/g" config/deploy.yml
4849
sed -i "s#image: my-user/myapp#image: ${{ env.image_repository_name }}#g" config/deploy.yml
4950
sed -i "s/- 192.168.0.1/- ${{ secrets.KAMAL_DEPLOY_IP }}/g" config/deploy.yml
5051
sed -i "s/host: my-app.example.com/host: ${{ secrets.KAMAL_DEPLOY_HOST }}/g" config/deploy.yml

0 commit comments

Comments
 (0)