Unset config-env-vars and config-vars-init-random #335
This file contains hidden or 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
| name: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| # schedule: | |
| # - cron: "0 0 * * *" # daily at midnight | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Deploy | |
| uses: ./ | |
| with: | |
| cli-version: nightly | |
| config-env-vars: | | |
| DEFANG_GH_ACTION_TEST_ENV | |
| DEFANG_GH_ACTION_TEST_MESSAGE | |
| config-vars-init-random: | | |
| DEFANG_GH_ACTION_TEST_SECRET | |
| cwd: "./test" | |
| compose-files: | | |
| compose.yaml | |
| compose.prod.yaml | |
| mode: "" | |
| command: "compose help" | |
| env: | |
| DEFANG_GH_ACTION_TEST_ENV: "foo" | |
| DEFANG_GH_ACTION_TEST_MESSAGE: ${{ secrets.MESSAGE }} | |
| - name: Deploy from Git ref | |
| uses: ./ | |
| with: | |
| cli-version: main | |
| cwd: "./test" | |
| command: "config help" | |
| - name: Deploy-Empty-Params | |
| uses: ./ | |
| continue-on-error: true # Ignore dry run error | |
| with: | |
| config-env-vars: "" | |
| cwd: "./test" | |
| compose-files: "" | |
| mode: "staging" | |
| verbose: true | |
| command: "compose up --dry-run --project-name github-action-test" | |
| - name: Teardown | |
| run: defang config rm --project-name github-action-test DEFANG_GH_ACTION_TEST_MESSAGE |