feat: add eks demo app (#37) #4
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_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: | | |
# run: nuon apps sync --all | |
# for demo, just sync one app so we don't have to wait too long | |
nuon apps sync --file nuon.aws-ecs-app.toml | |
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: | | |
# for demo, don't loop over apps, and just create releases for one | |
nuon components list -a aws-ecs-app -j | jq '.[].id' | xargs -n 1 nuon releases create -a aws-ecs-app --latest-build -c |