2024-03-20 10:45:06 +01:00
|
|
|
name: Earthly release
|
2024-03-20 09:05:28 +01:00
|
|
|
on:
|
|
|
|
push:
|
2024-03-20 10:14:46 +01:00
|
|
|
tags:
|
|
|
|
- "*"
|
2024-03-20 09:05:28 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Download latest earthly
|
|
|
|
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
|
2024-03-20 10:45:06 +01:00
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2024-03-20 10:14:46 +01:00
|
|
|
- name: Run earthly
|
|
|
|
run: earthly --ci --push +ci --SNAPSHOT=false --GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|