ci: Create GitHub Workflow (#9)

Add support for building, tagging, and releasing via CICD

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
This commit is contained in:
N16hth4wk 2024-01-23 19:07:48 -06:00 committed by GitHub
parent 6fffe1286e
commit 99649d2d88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 136 additions and 13 deletions

34
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Earthly +build
on:
merge_group:
pull_request:
push:
branches:
- main
env:
FORCE_COLOR: 1
jobs:
build:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
with:
use-cache: true
version: v0.8.0
# Pulling rust toolchain & install linux dependencies
- uses: dtolnay/rust-toolchain@stable
# Setup repo and add caching
- uses: actions/checkout@v4
- name: Docker Login
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Run build
run: earthly --push --ci -P +all