-
Notifications
You must be signed in to change notification settings - Fork 31
70 lines (60 loc) · 2.46 KB
/
dockerimagebase.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
58
59
60
61
62
63
64
65
66
67
name: Build base container
on:
push:
tags:
- build_base*
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: install cmake
run: |
wget --no-check-certificate https://cmake.org/files/v3.21/cmake-3.21.0-linux-x86_64.sh && \
chmod +x cmake-3.21.0-linux-x86_64.sh && \
./cmake-3.21.0-linux-x86_64.sh --skip-license --include-subdir && \
sudo ln -sf `pwd`/cmake-3.21.0-linux-x86_64/bin/* /usr/local/bin
- name: install packages
run: |
sudo apt-get update && \
sudo apt-get install -y software-properties-common build-essential apt-utils libprocps-dev \
gcc-11 g++-11 valgrind gawk sed libffi-dev ccache yasm texinfo \
autotools-dev autogen automake autoconf m4 shtool pkg-config nasm \
python3 python3-pip python-is-python3 \
libtool libgcrypt20-dev
# python python-pip
# wget git libargtable2-dev \
# libmicrohttpd-dev libhiredis-dev redis-server openssl libssl-dev >/dev/null 2>&1;
- name: Use g++-11 and gcov-11 by default
run: |
echo "Updating all needed alternatives"
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-11 11
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 11
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11 11
echo "Checking alternative for gcc"
which gcc
gcc --version
echo "Checking alternative for g++"
which g++
g++ --version
echo "Checking alternative for gcov"
which gcov
gcov --version
echo "Checking alternative for gcov-dump"
which gcov-dump
gcov-dump --version
echo "Checking alternative for gcov-tool"
which gcov-tool
gcov-tool --version
- uses: actions/checkout@v2
- name: submodule update
run: git submodule update --init --recursive
- name: Build the Docker image(base)
run: docker build . --file DockerfileBase --tag skalenetwork/consensust_base:latest
- name: Login to docker
env:
GITHUB_TOKEN: ${{ secrets.DOCKER_SECRET }}
run: docker login -u skalelabsci -p ${GITHUB_TOKEN}
- name: push docker image
run: docker push skalenetwork/consensust_base:latest