A GitHub Action for streamlining Zerops deployment workflows in your projects.
To implement the Zerops deployment workflow, add the following GitHub Actions
configuration to .github/workflows/deploy.yml
and modify it to fit your use
case:
name: Deploy with Zerops
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy with Zerops
uses: zeropsio/actions@main
with:
access-token: ${{ secrets.ZEROPS_TOKEN }}
service-id: EjmDVbL0QMuemLJ2hSO6zw # Replace it wit your own Service ID
A personal access token is required to authenticate the Zerops CLI. This token has admin privileges, so handle it with care.
- Navigate to Settings > Access Token Management in the Zerops application.
- Generate a new access token.
The service ID is used to identify your Zerops service.
- Access your service dashboard at
https://app.zerops.io/service-stack/<your-service-id>/dashboard
. - The service ID is the alphanumeric string in the URL (e.g.,
EjmDVbL0QMuemLJ2hSO6zw
).
Store the Zerops token and service ID as secrets in your GitHub repository:
- Go to your GitHub repository.
- Navigate to Settings > Secrets and variables > Actions > Repository secrets.
- Add the following secret:
ZEROPS_TOKEN
: Your Zerops access token