Files
lineageos-ota-server/.gitea/workflows/lineageos-ota-server.yaml
Steven Polley 8e874e1a99
Some checks failed
continuous-integration/drone/push Build encountered an error
lineageos-ota-server / build (push) Successful in 35s
migrate CICD from drone to actions
2025-11-17 12:23:45 -07:00

38 lines
778 B
YAML

name: lineageos-ota-server
on:
push:
branches:
- main
- master
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.x"
cache: true # enables Go module + build caching automatically
- name: Build server
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
run: |
go version
go build -a -ldflags "-w"
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: registry.stevenpolley.net/lineageos-ota-server:latest