Skip to content

Continuous deployment

cuigh edited this page Jan 4, 2022 · 1 revision

Deploy service with Swirl

Swirl provides an API for deploying service. When the service does not exist, it will automatically create the service. Otherwise, it will only update the image field.

curl -X "POST" "http://{swirl-domain}/api/service/deploy" \
     -H 'Authorization: Bearer 4595ac3589e78d1498dc9b00e9c8de50' \
     -H 'Content-Type: application/json' \
     -d $'{
  "replicas": 2,
  "networks": ["test"],
  "name": "test",
  "image": "jwilder/whoami"
}'
Clone this wiki locally