Skip to content

Commit

Permalink
feat: ci docker
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Oct 19, 2023
1 parent 84a7584 commit e4af8d0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-ci-docker-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
paths:
- 'ci/docker/linux/**'

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action
with:
context: .
file: ci/docker/linux/Dockerfile
push: true
tags: latest
labels: linux-ci
12 changes: 12 additions & 0 deletions ci/docker/linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:jammy

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get -y install lcov git wget cmake build-essential python3-pip && \
apt-get -y install qtbase5-dev qt3d5-dev libqt5svg5-dev freeglut3-dev

RUN pip install jinja2

RUN wget https://github.com/google/or-tools/releases/download/v9.7/or-tools_amd64_ubuntu-22.04_cpp_v9.7.2996.tar.gz
RUN tar -xvf or-tools_amd64_ubuntu-22.04_cpp_v9.7.2996.tar.gz --strip-components=1 -C /usr/local/

0 comments on commit e4af8d0

Please sign in to comment.