Skip to content

tryvium-travels/docker-netlify-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-netlify-cli logo

Netlify CLI in Docker

Dockerhub Name Dockerhub Pulls FOSSA Status

The netlify-cli package available as a Docker Image

Usage

You can use the image in multiple ways:

In other dockerfiles as a source image

FROM tryvium/netlify-cli
# ADD or COPY other files and run commands like build and deploy

# Remove or change the inherited entrypoint if you need it.
ENTRYPOINT [""]

As a standalone netlify CLI

$ docker run -e NETLIFY_AUTH_TOKEN="YOUR NETLIFY TOKEN" tryvium/netlify-cli # command and parameters ...
$ # for example
$ # docker run -e NETLIFY_AUTH_TOKEN="YOUR NETLIFY TOKEN" tryvium/netlify-cli deploy

The image is not tested with build and deploy commands, so we encourage you to open issues and PRs if you encounter any problem

In a CI environment

Here an example using Gitlab CI

Deploy to netlify:
  image: 
    name: tryvium/netlify-cli
    entrypoint: [""]
  environment: 
    NETLIFY_AUTH_TOKEN: "YOUR NETLIFY TOKEN"
  script: 
    - netlify -h

License

FOSSA Status