Skip to content

Commit 7eeae9e

Browse files
author
Alexander Batashev
authored
[CI] Introduce a Docker container for reproducible build environments (#4754)
1 parent dce4c6a commit 7eeae9e

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI Containers
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# Every 1st and 15th day of month
6+
- cron: '0 0 1,15 * *'
7+
8+
jobs:
9+
base_image_ubuntu2004:
10+
if: github.repository == 'intel/llvm'
11+
name: Base Ubuntu 20.04 Docker image
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 1
18+
- name: Login to GitHub Container Registry
19+
uses: docker/login-action@v1
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.repository_owner }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Build and Push Container
25+
uses: docker/build-push-action@v2
26+
with:
27+
push: true
28+
tags: |
29+
ghcr.io/${{ github.repository }}/ubuntu2004_base:${{ github.sha }}
30+
ghcr.io/${{ github.repository }}/ubuntu2004_base:latest
31+
context: ${{ github.workspace }}/devops
32+
file: ${{ github.workspace }}/devops/containers/ubuntu2004_base.Dockerfile
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update && apt install -yqq \
6+
build-essential \
7+
cmake \
8+
ninja-build \
9+
ccache \
10+
git \
11+
python3

0 commit comments

Comments
 (0)