Skip to content

Merge pull request #399 from mnvsk97/fix/tfy-login #53

Merge pull request #399 from mnvsk97/fix/tfy-login

Merge pull request #399 from mnvsk97/fix/tfy-login #53

Workflow file for this run

name: Deploy
on:
push:
branches:
- release
- main
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install truefoundry
run: pip install -U --pre truefoundry
- name: Generate truefoundry-patched.yaml
run: |
tfy patch --file truefoundry.yaml \
--filter='(.components[] | select(.image.build_source != null)) |= (.image.build_source.ref = "${{ github.sha }}" | .image.build_source.branch_name = "${{ github.ref_name }}")' \
--output-file truefoundry-patched.yaml
- name: Deploy
run: tfy deploy --workspace-fqn $TFY_WORKSPACE_FQN --file truefoundry-patched.yaml --no-wait
env:
TFY_API_KEY: ${{ secrets.TFY_API_KEY }}
TFY_HOST: ${{ secrets.TFY_HOST }}
TFY_WORKSPACE_FQN: ${{ secrets.TFY_WORKSPACE_FQN }}