File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments