-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 970 Bytes
/
bird.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: BIRD
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
permissions:
contents: read
packages: write
steps:
- uses: earthly/actions-setup@v1
with:
version: v0.7.15
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
with:
platforms: all
- name: Login to ghcr.io
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build and push image
run: earthly ./bird+all
env:
EARTHLY_PUSH: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
EARTHLY_REMOTE_CACHE: ghcr.io/${{ github.repository_owner }}/bird:cache