diff --git a/.github/workflows/sycl_containers.yaml b/.github/workflows/sycl_containers.yaml new file mode 100644 index 0000000000000..fab6aa66269d8 --- /dev/null +++ b/.github/workflows/sycl_containers.yaml @@ -0,0 +1,32 @@ +name: CI Containers +on: + workflow_dispatch: + schedule: + # Every 1st and 15th day of month + - cron: '0 0 1,15 * *' + +jobs: + base_image_ubuntu2004: + if: github.repository == 'intel/llvm' + name: Base Ubuntu 20.04 Docker image + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push Container + uses: docker/build-push-action@v2 + with: + push: true + tags: | + ghcr.io/${{ github.repository }}/ubuntu2004_base:${{ github.sha }} + ghcr.io/${{ github.repository }}/ubuntu2004_base:latest + context: ${{ github.workspace }}/devops + file: ${{ github.workspace }}/devops/containers/ubuntu2004_base.Dockerfile diff --git a/devops/containers/ubuntu2004_base.Dockerfile b/devops/containers/ubuntu2004_base.Dockerfile new file mode 100644 index 0000000000000..6305783e48a43 --- /dev/null +++ b/devops/containers/ubuntu2004_base.Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt update && apt install -yqq \ + build-essential \ + cmake \ + ninja-build \ + ccache \ + git \ + python3