-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.53 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build and push
on:
schedule:
- cron: '0 0 * * 1'
push:
paths:
- 'images/**'
- 'bakefiles/**'
- '**.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- uses: Gr1N/setup-poetry@v9
- name: Cache Poetry virtualenv
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{runner.os}}-poetry-${{hashFiles('**/poetry.lock')}}
restore-keys: |
${{runner.os}}-poetry-
- run: |
poetry --version
poetry install
poetry run python scripts/update.py
poetry run python scripts/generate_bake.py
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: Build and push Docker images
run: |
docker buildx bake -f bakefiles/bakefile.json --push radian
docker buildx bake -f bakefiles/bakefile.json --push radian-verse
docker buildx bake -f bakefiles/bakefile.json --push radian-verse-zsh
docker buildx bake -f bakefiles/bakefile.json --push cmdstan-verse
docker buildx bake -f bakefiles/bakefile.json --push cmdstan-verse-zsh