Feat: CalFresh Spanish updates (#2071) #684
Workflow file for this run
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
- test | |
- prod | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: ${{ github.ref_name }} | |
concurrency: ${{ github.ref_name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: .github/workflows/.python-version | |
cache: pip | |
cache-dependency-path: "**/pyproject.toml" | |
- name: Write python packages to file | |
run: | | |
python -m venv .venv | |
source .venv/bin/activate | |
pip install pipdeptree | |
pip install -e . | |
pipdeptree | |
pipdeptree >> benefits/static/requirements.txt | |
- name: Write commit SHA to file | |
run: echo "${{ github.sha }}" >> benefits/static/sha.txt | |
- name: Docker Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build, tag, and push image to GitHub Container Registry | |
uses: docker/build-push-action@v5 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
build-args: GIT-SHA=${{ github.sha }} | |
cache-from: type=gha,scope=cal-itp | |
cache-to: type=gha,scope=cal-itp,mode=max | |
context: . | |
file: appcontainer/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository }}:${{ github.ref_name }} | |
ghcr.io/${{ github.repository }}:${{ github.sha }} |