Skip to content

Commit

Permalink
Spawn docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mczyz-antmicro committed Jan 24, 2024
1 parent 9ec6727 commit 3c1bfad
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Chipyard Megaboom Benchmark

on:
- workflow_dispatch
- push
- pull_request
workflow_dispatch:
push:
pull_request:

jobs:
smoke-tests:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/ci_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docker update

on:
workflow_dispatch:
push:
pull_request:


jobs:
docker:
runs-on: ubuntu-latest
env:
IMAGE: chipyard-latest
steps:
- uses: actions/checkout@v3
- name: Build docker image
run: |
docker build -t "${{ env.IMAGE }}" .
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/megaboom-cpu-benchmarking'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: gha
password: ${{ github.token }}

- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/megaboom-cpu-benchmarking'
run: docker push $IMAGE

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:22.04

RUN apt -qqy update && \
DEBIAN_FRONTEND=noninteractive apt install -qqy --no-install-recommends \
ca-certificates build-essential gcc g++ python3 git cmake autoconf bison flex help2man wget
RUN update-ca-certificates

0 comments on commit 3c1bfad

Please sign in to comment.