Files
autopilot/.gitea/workflows/build.yml
T

21 lines
537 B
YAML

name: build
on:
push:
branches: [stage, main]
workflow_dispatch:
jobs:
build:
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
strategy:
matrix:
include:
- arch: arm64
tag: arm
- arch: amd64
tag: amd64
steps:
- uses: actions/checkout@v4
- run: |
docker build -f Dockerfile -t localhost:5000/autopilot:${{ github.ref_name }}-${{ matrix.tag }} .
docker push localhost:5000/autopilot:${{ github.ref_name }}-${{ matrix.tag }}