Skip to content

Commit

Permalink
chore(deploy): pip freeze to a static file
Browse files Browse the repository at this point in the history
similar to having the SHA, will help confirm changes and debug
  • Loading branch information
thekaveman committed Sep 19, 2023
1 parent 60b6d0b commit e7f7115
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Write commit SHA to file
run: echo "${{ github.sha }}" >> benefits/static/sha.txt
- uses: actions/setup-python@v4
with:
python-version-file: .github/workflows/.python-version
cache: pip
cache-dependency-path: "**/pyproject.toml"

- name: Install package in virtual env
run: |
python -m venv .venv
source .venv/bin/activate
pip install -e .
- name: Write app metadata to static files
run: |
echo "${{ github.sha }}" >> benefits/static/sha.txt
pip freeze >> benefits/static/requirements.txt
- name: Docker Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit e7f7115

Please sign in to comment.