-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (37 loc) · 992 Bytes
/
arm64-test.yaml
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
name: arm64/test
on:
schedule:
- cron: 0 11 * * 1
workflow_call:
workflow_dispatch:
inputs:
trigger:
description: Manually trigger
required: true
type: choice
options:
- build
env:
FORCE_COLOR: 1
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Put back the git branch into git (Earthly uses it for tagging)
shell: bash
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Earthly Build
working-directory: poetbot
run: earthly --allow-privileged --platform=linux/arm64 +build
- name: Clean Images
run: docker rmi mritd/poetbot:latest mritd/poetbot:latest_linux_arm64