Merge pull request #146 from GSA-TTS/issue-145-aanand-docker-compose-… #31
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
name: Deploy Dev | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11.10 | |
- name: Install poetry | |
shell: bash | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
export PATH="$HOME/.local/bin:$PATH" | |
poetry --version | |
poetry self add poetry-plugin-export | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install frontend dependencies and build assets | |
run: | | |
cd nad_ch/controllers/web | |
npm install | |
npm run build | |
- name: Create requirements.txt | |
shell: bash | |
run: poetry export -f requirements.txt --output requirements.txt | |
- name: Deploy to dev environment | |
uses: 18f/cg-deploy-action@main | |
with: | |
cf_username: ${{ secrets.CF_USERNAME }} | |
cf_password: ${{ secrets.CF_PASSWORD }} | |
cf_org: ${{ secrets.CF_ORG }} | |
cf_space: ${{ secrets.CF_SPACE }} | |
push_arguments: "-f manifest-dev.yml 10x-nad-st-dev" |