-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (45 loc) · 1.48 KB
/
build.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
54
55
56
57
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 Package
run: |
egeoffrey-cli -o build
- name: Install the Package
run: |
sudo egeoffrey-cli -d /tmp/egeoffrey install ./manifest.yml
sudo egeoffrey-cli -d /tmp/egeoffrey start
- name: Collect Logs
run: |
sleep 30
sudo egeoffrey-cli -d /tmp/egeoffrey logs > /tmp/egeoffrey.log
- 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 Package to DockerHub
run: |
egeoffrey-cli -f build