38 lines
752 B
YAML
38 lines
752 B
YAML
name: Earthly +build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
merge_group:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
id-token: write # Enable OIDC
|
|
contents: write
|
|
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
|