Add chipyard docker #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker update | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE: ghcr.io/antmicro/megaboom-cpu-benchmarking | |
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 | |