-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (39 loc) · 1.21 KB
/
build-edge-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: Build Edge images
on:
schedule:
- cron: '0 15 * * *'
push:
paths:
- '**/Dockerfile.edge'
- '.github/workflows/build-edge-images.yml'
jobs:
build_edge:
name: Build the HEAD Roswell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.ref == 'refs/heads/master'
uses: docker/login-action@v1
with:
username: fukamachi
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and publish edge image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
ARCH: linux/amd64,linux/arm64
run: |
BUILD_ARGS=""
if [ "$GITHUB_REF" = "refs/heads/master" ]; then
BUILD_ARGS="--push"
fi
BUILD_ARGS=$BUILD_ARGS ./build.sh roswell edge debian $build_arg
./test.sh roswell edge debian
BUILD_ARGS=$BUILD_ARGS ./build.sh sbcl edge debian $build_arg
./test.sh sbcl edge debian