Merge pull request #10484 from ToolJet/fix/docker-workflow

Fix docker release workflow to update LTS CE test system
This commit is contained in:
Adish M 2024-07-26 13:48:27 +05:30 committed by GitHub
commit b8841e89db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,20 +190,10 @@ jobs:
sed -i '/^[[:space:]]*tooljet:/,/^[[:space:]]*[^:]*$/ { /^[[:space:]]*image:[[:space:]]*tooljet\/tooljet-ce/s|\(image:[[:space:]]*\).*|\1tooljet/tooljet-ce:'"${{ github.event.release.tag_name }}"'| }' docker-compose.yml
# check the updated docker-compose.yml file
cat docker-compose.yaml
cat docker-compose.yml
# Start the Docker containers
sudo docker-compose up -d
#View containers
sudo docker ps
- name: Send Slack Notification
run: |
if [[ "${{ job.status }}" == "success" ]]; then
message="CE-LTS test system with updated the image: `tooljet/tooljet-ce:${{ github.event.release.tag_name }}`"
else
message="Failed to update the CE LTS test system"
fi
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"$message\"}" ${{ secrets.SLACK_WEBHOOK_URL }}
sudo docker ps