Skip to content

.github/workflows/nuon.yaml #11

.github/workflows/nuon.yaml

.github/workflows/nuon.yaml #11

Workflow file for this run

on:
push:
branches: main
paths:
- "nuon/**"
- "src/**"
workflow_dispatch:
defaults:
run:
shell: bash
env:
NUON_ORG_ID: ${{ secrets.NUON_ORG_ID }}
NUON_API_TOKEN: ${{ secrets.NUON_API_TOKEN }}
NUON_APP_CONFIG: ${{ secrets.NUON_APP_CONFIG }}
NUON_APP_ID: ${{ secrets.NUON_APP_ID }}
jobs:
sync:
runs-on: ubuntu-latest
name: Push to Nuon
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install CLI
id: cli
run: ./scripts/install-cli.sh
- name: Sync configs
id: sync
run: |
nuon apps sync --file $NUON_APP_CONFIG
working-directory: ./nuon
release:
runs-on: ubuntu-latest
name: Release to Customers
needs: sync
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install CLI
id: cli
run: ./scripts/install-cli.sh
- name: Release to installs
id: release
run: |
nuon components list -a $NUON_APP_ID -j | jq '.[].id' | xargs -n 1 nuon releases create -a $NUON_APP_ID --latest-build -c