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 9bc21aa
Show file tree
Hide file tree
Showing 2 changed files with 34 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

0 comments on commit 9bc21aa

Please sign in to comment.