Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Deploy
on:
workflow_dispatch:
inputs:
environment:
type: choice
options:
- production
- staging
required: true
default: staging
push:
branches:
- production
- pipelining

permissions: read-all

jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: pipenv

- name: install lib dpendencies
run: |
sudo apt-get install -y default-libmysqlclient-dev build-essential pkg-config
python -m pip install pipenv

- name: install python dependencies
run: |
python -m pipenv sync

# TODO
# Get exact command from Rob
# Feed it the secrets e.g. SECRET__PAYPAL_CLIENT_ID
# - name: deploy
# run: fab deploy --environment ${{ inputs.environment }}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can drop the command here, I can work out the rest

# env:
# PAYPAL_CLIENT_ID=${{ SECRET__PAYPAL_CLIENT_ID }}
# PAYPAL_CLIENT_SECRET=${{ SECRET__PAYPAL_CLIENT_SECRET }}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ passenger_wsgi.py
/config/
/node_modules
/node_modules/*
package-lock.json
poetry.lock
Pipfile.lock
testing.out
chromedriver.exe
.idea/
.idea/*
.env
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
Loading