3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-06 13:37:28 +02:00

Sed replace in-file.

This commit is contained in:
Alex Belanger 2024-03-08 23:07:40 -05:00
parent 5c4b13cdaf
commit ddef5f6ae3
No known key found for this signature in database
GPG Key ID: 31736D2B10A5F158

View File

@ -56,8 +56,17 @@ jobs:
- name: Push image
run: |-
docker push "gcr.io/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA"
- uses: jitterbit/get-changed-files@v1
id: changed_files
- name: List changed files
run: |
for changed_file in ${{ steps.changed_files.outputs.all }}; do
echo "Modified: ${changed_file}"
done
- name: Deploy
run: |-
sed -e "s/PROJECT_ID/$PROJECT_ID/g" -e "s/REPOSITORY/$REPOSITORY/g" -e "s/IMAGE/$IMAGE/g" -e "s/GITHUB_SHA/$GITHUB_SHA/g" k8s/deployment.yaml
sed -i -e "s/PROJECT_ID/$PROJECT_ID/g" -e "s/REPOSITORY/$REPOSITORY/g" -e "s/IMAGE/$IMAGE/g" -e "s/GITHUB_SHA/$GITHUB_SHA/g" k8s/deployment.yaml
kubectl apply -f k8s/deployment.yaml