Nife GIT Actions Quickstart

Learn to deploy actions using Git Actions

Continuous Deployment using Nife#

  1. Fork go-example to your own GitHub repository.
  2. Get a Nife API token with nifectl auth token or login to the UI and fetch the Token
  3. Go to your newly created repository on GitHub and select Settings.
  4. Go to Secrets and create a secret called NIFE_ACCESS_TOKEN retrieved in Step Two
  5. Clone the repository to your local machine to edit it
  6. Create .github/workflows/main.yml with these contents
name: Deploy to Nife
on: [push]
name: Deploy proxy
runs-on: ubuntu-latest
# This step checks out a copy of your repository.
- uses: actions/checkout@v2
# This step runs nifectl deploy.
- uses: nifetency/[email protected]
args: "deploy --remote-only"
  1. Commit your changes and push them up to GitHub.

The next changes and pushes will trigger based on the workflow. In this case, new images will be automatic deployed

  1. Monitor the Action Tabs in the project repository to view the logs.


Find GitHub Actions on MarketPlace

Learn More GitHub Actions Documentation