Skip to content

.github/workflows/nuon.yaml #23

.github/workflows/nuon.yaml

.github/workflows/nuon.yaml #23

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_FILE: ${{ secrets.NUON_FILE }}
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 --all
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 apps list -j | jq '.[].id' | xargs -n 1 nuon components list -j | jq '.[].id' | xargs -n 1 nuon releases create --latest-build -c