Skip to content

Commit

Permalink
Start building the ./dtox.sh cache image in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Jan 26, 2025
1 parent 97878b4 commit d365641
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-cache-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build ./dtox.sh Cache Image
on:
schedule:
# 2:00 AM US-Pacific on Wednesdays
- cron: '0 9 * * 3'
workflow_dispatch:
defaults:
run:
shell: bash
env:
SCIENCE_AUTH_API_GITHUB_COM_BEARER: ${{ secrets.GITHUB_TOKEN }}
jobs:
build-cache-image:
name: Build ./dtox.sh Cache Image
runs-on: ubuntu-24.04
steps:
- name: Checkout Pex
uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Build & Push Cache Image
run: |
python -mvenv .venv
source .venv/bin/activate
python -V
pip install -U pip
pip -V
pip install tox
tox --version
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login ghcr.io -u ${{ github.actor }} --password-stdin
tox -e build-cache-image -- --color --push

0 comments on commit d365641

Please sign in to comment.