.github/workflows/nuon.yaml #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |