We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f4be2d commit c538e11Copy full SHA for c538e11
1 file changed
.github/workflows/release.yml
@@ -40,11 +40,12 @@ jobs:
40
41
# This step is for the deployment of the templates only, safe to delete
42
- name: Modify deploy.yml
43
- env:
+ env:
44
KAMAL_DEPLOY_IP: ${{ secrets.KAMAL_DEPLOY_IP }}
45
if: env.KAMAL_DEPLOY_IP != null
46
run: |
47
- sed -i "s/service: my-app/service: ${{ env.repository_name_lower }}/g" config/deploy.yml
+ SERVICE_NAME=$(echo "${{ env.repository_name_lower }}" | tr '.' '-')
48
+ sed -i "s/service: my-app/service: $SERVICE_NAME/g" config/deploy.yml
49
sed -i "s#image: my-user/myapp#image: ${{ env.image_repository_name }}#g" config/deploy.yml
50
sed -i "s/- 192.168.0.1/- ${{ secrets.KAMAL_DEPLOY_IP }}/g" config/deploy.yml
51
sed -i "s/host: my-app.example.com/host: ${{ secrets.KAMAL_DEPLOY_HOST }}/g" config/deploy.yml
0 commit comments