aj0strow / netlifyctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netlifyctl

Forked from the official non-official client. It works on Circle CI if you cross compile and store the binary in your project. Below are steps to reproduce the hack.

  1. Fetch golang source code.
$ go get github.com/aj0strow/netlifyctl
$ cd netlifyctl
  1. Cross compile for circle ci operating system from within the source code project folder.
$ GOOS=linux GOARCH=amd64 go build .
  1. You should have a netlifyctl binary now. Copy it to your project bin folder.
/project/bin/netlifyctl
  1. Run the following command in circle yml with the full project id (not the name, the uuid) and a valid access token.
$ bin/netlifyctl deploy --site-id {uuid} --path dist --access-token {token}

Hope this helps!

About

License:MIT License


Languages

Language:Go 100.0%