-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 997 Bytes
/
images.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
name: images
on:
push:
branches: [main]
pull_request:
branches: [main]
pull_request_target:
types: [labeled]
schedule:
- cron: '0 9 * * FRI'
workflow_dispatch:
env:
REGISTRY_IMAGE: ghcr.io/markentier/utilities
jobs:
utilities:
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
- run: docker version
- run: docker info
- run: docker system df -v
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry (ghcr.io)
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
-
name: Build and push
run: make all.ghcr BUILDX_FLAGS="--cache-from=type=gha --cache-to=type=gha"