Skip to content

Commit

Permalink
Fix date format
Browse files Browse the repository at this point in the history
Signed-off-by: Huang Xin <[email protected]>
  • Loading branch information
gyohuangxin committed May 16, 2023
1 parent 7aa2ee8 commit 712dcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/start-cil-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ user_data_scripts="#cloud-config\nusers:\n - default\n - name: smp\n

# TODO: the options "operating_system", "facility", "plan" are hardcoded now, we should make them configurable
# https://metal.equinix.com/developers/api/devices/#devices-createdevice
termination_time=`date --utc -d "110 minute" +"%FT%T.%3NZ"`
termination_time=`date --utc -d "110 minute" +"%FT%TZ"`
device_id=$(curl -X POST -H "X-Auth-Token: $token" -s -H "Content-Type: application/json" \
-d '{"operating_system": "ubuntu_20_04", "facility": "da11", "plan": "c3.small.x86", "hostname": "'"${hostname}"'", "userdata": "'"${user_data_scripts}"'", "termination_time": "'"${termination_time}"'"}' \
https://api.equinix.com/metal/v1/projects/96a9d336-541b-42f7-9827-d845010da550/devices | jq -r .id)
Expand Down

0 comments on commit 712dcc1

Please sign in to comment.