Files
docker-images/.gitea/workflows/build.yaml
Walter Oggioni f70dcc029f
Some checks failed
CI / docker (push) Failing after 6m44s
attempt to use buildx cache
2024-05-27 20:34:06 +08:00

50 lines
1.6 KiB
YAML

name: CI
on:
push:
branches: [ master ]
jobs:
docker:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: woryzen
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push jupyter-python image
uses: docker/build-push-action@v5.3.0
with:
context: "{{defaultContext}}:jupyter-python"
platforms: linux/amd64
push: true
tags: gitea.woggioni.net/woggioni/jupyter-python:latest
cache-from: type=local,src=.cache/buildx
cache-to: type=local,dest=.cache/buildx,mode=max
-
name: Build and push jupyter-ganymede image
uses: docker/build-push-action@v5.3.0
with:
context: "{{defaultContext}}:jupyter-ganymede"
platforms: linux/amd64
push: true
tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest
cache-from: type=local,src=.cache/buildx
cache-to: type=local,dest=.cache/buildx,mode=max
- name: Cache Buildx cache
uses: actions/cache@v4.0.2
with:
path: ~/.cache/buildx
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-buildx-