Skip to content

Commit

Permalink
CI added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen0x7 committed Aug 16, 2024
1 parent 0d587a5 commit 9696491
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: iantorres/boosted:latest
27 changes: 12 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ ENV TZ="UTC" \
DEBIAN_FRONTEND=noninteractive \
TERM=xterm-256color

WORKDIR /srv

RUN apt update -qq \
&& apt-get install -y -qq lsb-release gnupg git wget build-essential cmake gcc make apt-utils zip unzip tzdata libtool automake m4 re2c curl supervisor libssl-dev zlib1g-dev libcurl4-gnutls-dev libprotobuf-dev \
&& ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata \
&& apt-get clean \
&& apt-get autoclean \
&& apt-get autoremove

WORKDIR /srv

RUN wget https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz && \
tar -xf boost_1_86_0.tar.gz && \
cd boost_1_86_0 && \
sh bootstrap.sh && \
./b2 install release variant=release debug-symbols=on optimization=speed \
&& apt-get autoremove \
&& wget https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz \
&& tar -xf boost_1_86_0.tar.gz \
&& cd boost_1_86_0 \
&& sh bootstrap.sh \
&& ./b2 install release variant=release debug-symbols=on optimization=speed \
--with-json \
--with-thread \
--with-headers \
Expand All @@ -44,9 +43,7 @@ RUN wget https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.gz &&
--with-atomic \
--with-filesystem \
--with-date_time \
--with-url && \
cd .. && \
rm boost_1_86_0 -rf && \
rm boost_1_86_0.tar.gz

WORKDIR /srv
--with-url \
&& cd .. \
&& rm boost_1_86_0 -rf \
&& rm boost_1_86_0.tar.gz

0 comments on commit 9696491

Please sign in to comment.