Skip to content

Commit

Permalink
Remove unused GitHub workflows, build script, Dockerfiles and update …
Browse files Browse the repository at this point in the history
…script; update Makefile.
  • Loading branch information
mattocci27 committed Mar 6, 2024
1 parent 940c0cf commit 6e08e34
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 318 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
key: ${{runner.os}}-poetry-${{hashFiles('**/poetry.lock')}}
restore-keys: |
${{ runner.os }}-poetry-
${{runner.os}}-poetry-
- run: |
poetry --version
poetry install
poetry run python scripts/update.py
poetry run python scripts/generate_yml.py
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -42,10 +44,10 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_PASSWORD}}

- name: Build and push radian_4.3.2
- name: Build and push radian_4.3.2 for amd64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -54,7 +56,7 @@ jobs:
platforms: linux/amd64
tags: mattocci/radian:4.3.2

- name: Build and push radian-verse_4.3.2
- name: Build and push radian-verse_4.3.2 for amd64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -63,7 +65,7 @@ jobs:
platforms: linux/amd64
tags: mattocci/radian-verse:4.3.2

- name: Build and push cmdstan-verse_4.3.2
- name: Build and push cmdstan-verse_4.3.2 for amd64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -72,11 +74,12 @@ jobs:
platforms: linux/amd64
tags: mattocci/cmdstan-verse:4.3.2

- name: Build and push cmdstan-verse-zsh_4.3.2
- name: Build and push cmdstan-verse-zsh_4.3.2 for amd64
uses: docker/build-push-action@v5
with:
context: .
file: images/cmdstan-verse-zsh_4.3.2/Dockerfile
push: true
platforms: linux/amd64
tags: mattocci/cmdstan-verse-zsh:4.3.2

19 changes: 11 additions & 8 deletions .github/workflows/test.yml → .github/workflows/update_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
key: ${{runner.os}}-poetry-${{hashFiles('**/poetry.lock')}}
restore-keys: |
${{ runner.os }}-poetry-
${{runner.os}}-poetry-
- run: |
poetry --version
poetry install
poetry run python scripts/update.py
poetry run python scripts/generate_yml.py
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -42,10 +44,10 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_PASSWORD}}

- name: Build and push radian_4.3.2
- name: Build and push radian_4.3.2 for arm64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -54,7 +56,7 @@ jobs:
platforms: linux/arm64
tags: mattocci/radian:4.3.2

- name: Build and push radian-verse_4.3.2
- name: Build and push radian-verse_4.3.2 for arm64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -63,7 +65,7 @@ jobs:
platforms: linux/arm64
tags: mattocci/radian-verse:4.3.2

- name: Build and push cmdstan-verse_4.3.2
- name: Build and push cmdstan-verse_4.3.2 for arm64
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -72,11 +74,12 @@ jobs:
platforms: linux/arm64
tags: mattocci/cmdstan-verse:4.3.2

- name: Build and push cmdstan-verse-zsh_4.3.2
- name: Build and push cmdstan-verse-zsh_4.3.2 for arm64
uses: docker/build-push-action@v5
with:
context: .
file: images/cmdstan-verse-zsh_4.3.2/Dockerfile
push: true
platforms: linux/arm64
tags: mattocci/cmdstan-verse-zsh:4.3.2

8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.PHONY: all
LATEST_TAG = 4.3.2

all: update compose push_docker
all: update update_yml compose push_docker

.PHONY: update
update: update.py images.json
update: scripts/update.py images.json
poetry run python3 $<

.PHONY: update_yml
update_yml: scripts/generate_yml.py templates/update_template.yml.jinja
poetry run python3 $<

.PHONY: compose
Expand Down
64 changes: 0 additions & 64 deletions build_images.py

This file was deleted.

164 changes: 0 additions & 164 deletions images/tinytex_4.3.2/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions images/tinytex_4.3.2/Makefile

This file was deleted.

Loading

0 comments on commit 6e08e34

Please sign in to comment.