Skip to content

arm64/test

arm64/test #87

Workflow file for this run

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