Catalog Push Action
This action allows you to add an application to the catalog.
Environment Variables
Variable | Description |
---|---|
PLAYGROUND_PAT | The PLAYGROUND_PAT environment variable contains the Napptive Personal Access Token. |
Inputs
Input | Description |
---|---|
applicationPath | The path that contains the YAML files of the application to be uploaded. This input is required. |
namespace | The namespace where the application is going to be updated. This input is required |
applicationName | With the name of the application. |
tag | With the application tag. If empty the application will be tagged as latest. |
playgroundConfigFile | This file allows you to change the target playground installation. This input is not required. Visit documentation for an example. |
Example
name: Push an application to Napptive Playground
on: [push]
jobs:
deploy:
name: Catalog deploy
runs-on: ubuntu-latest
steps:
name: Publish docker image, and update the application in the catalog
on: workflow_dispatch
env:
PLAYGROUND_PAT: ${{ secrets.PLAYGROUND_PAT}}
jobs:
build:
name: Push docker images & deploy new version
runs-on: ubuntu-latest
steps:
# Get a copy of the repo.
- uses: actions/checkout@v2
- name: Push the application on the catalog
uses: napptive-actions/catalog-push-action@v6.1.0
with:
applicationPath: ./build/k8s/
namespace: "namespace"
applicationName: "appName"
tag: "v1.1.0"
For more information, check the catalog-push-action in the GitHub marketplace.