-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.6 KB
/
build_sdk.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and Publish eGeoffrey Package
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
- name: Install eGeoffrey
run: |
sudo EGEOFFREY_INSTALL_DIRECTORY=/tmp/egeoffrey EGEOFFREY_SETUP_REMOTE=n bash -c "$(curl -ssL https://get.egeoffrey.com)"
- name: Build the eGeoffrey SDK
run: |
egeoffrey-cli -o sdk build alpine amd64 >> /tmp/egeoffrey.log 2>&1
egeoffrey-cli -o sdk build alpine arm32v6 >> /tmp/egeoffrey.log 2>&1
egeoffrey-cli -o sdk build raspbian amd64 >> /tmp/egeoffrey.log 2>&1
egeoffrey-cli -o sdk build raspbian arm32v6 >> /tmp/egeoffrey.log 2>&1
- name: Check for errors
run: |
sudo cat /tmp/egeoffrey.log
if cat /tmp/egeoffrey.log| sed $'s/\e\\[[0-9;:]*[a-zA-Z]//g'|grep ERROR: >/dev/null ; then exit 1; fi
- name: Push the eGeoffrey SDK to DockerHub
run: |
egeoffrey-cli -f sdk build alpine amd64
egeoffrey-cli -f sdk build alpine arm32v6
egeoffrey-cli -f sdk build raspbian amd64
egeoffrey-cli -f sdk build raspbian arm32v6