Merge branch 'master' of https://github.com/OWASP/cornucopia #69
Workflow file for this run
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: Copi Deploy Production | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy-to-prod: | |
| runs-on: ubuntu-latest # Or another supported runner | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Elixir and Erlang | |
| uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4 | |
| with: | |
| elixir-version: 1.18.2 | |
| otp-version: 27.3.3 | |
| env: | |
| ImageOS: ubuntu24 | |
| - name: Setup Flyctl | |
| uses: superfly/flyctl-actions/setup-flyctl@63da3ecc5e2793b98a3f2519b3d75d4f4c11cec2 | |
| - name: Deploy to Fly.io production | |
| run: flyctl deploy --remote-only --app copi-white-forest-5871 --env PHX_HOST=copi.owasp.org | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| working-directory: ./copi.owasp.org |