Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

nitrictech/setup-nitric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nitric Actions

Deprecation notice

Warning This action has been deprecated.

Please use the nitrictech/actions action in installation only mode.

Migrating to nitrictech/actions

To migrate, switch to nitrictech/actions@v1.

BeforeAfter
- name: Install nitric
  uses: nitrictech/setup-nitric@v1

- name: Install nitric
  uses: nitrictech/setup-nitric@v1
  with:
    version: 1.32.0
- name: Install nitric
  uses: nitrictech/actions@v1

- name: Install nitric
  uses: nitrictech/actions@v1
  with:
    version: 1.32.0

Introduction

Nitric's GitHub Setup exposes the Nitric CLI to your GitHub workflow so that you can run any command you wish using actions.

Note: Action runner must be set to linux, as MacOS runner does not include docker and Windows VMs are limited in depth.

runs-on: ubuntu-latest

Build

To update your changes, rebuild the dist folder with the following command -

npm run build

Inputs

version:
  description: Version of the CLI being used
  required: false
  default: 1.2.1

Example workflow

name: Sample configuration to deploy to AWS
on:
  workflow_dispatch:
  push:
    branches:
      - main
env:
  PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
  PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
jobs:
  update:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-region: ${{ secrets.AWS_REGION }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
      - name: Install Nitric CLI
        uses: nitrictech/setup-nitric@v1
        with:
          version: 1.2.1
      - name: Install dependencies
        uses: pulumi/setup-pulumi@v2
      - name: Checkout project
        uses: actions/checkout@v3
      - name: Resolve packages
        run: npm install
      - name: Deploy stack to aws
        run: nitric up -s dev -v0

About

Make nitric available for GitHub actions

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published