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:
parent
6fffe1286e
commit
99649d2d88
6 changed files with 136 additions and 13 deletions
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue