forked from chipsalliance/Cores-VeeR-EL2
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.4 KB
/
build-docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build docker image
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/build-docker-image.yml
jobs:
build:
runs-on: ubuntu-20.04
env:
VERILATOR_VERSION: v5.024
VERILATOR_UVM_VERSION: 7ca2d6470a
OPENOCD_VERSION: riscv-nohalt-change-module
RENODE_VERSION: 1.15.3+20240924gitc7bc336bb
SPIKE_VERSION: d70ea67d
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create directory for context
run: |
# Work in an empty directory to avoid unnecessary copying.
mkdir context
- name: Build and push to registry
uses: docker/build-push-action@v6
with:
context: context
push: true
tags: ghcr.io/antmicro/cores-veer-el2:latest
file: .github/Dockerfile
build-args: |
VERILATOR_VERSION=${{ env.VERILATOR_VERSION }}
VERILATOR_UVM_VERSION=${{ env.VERILATOR_UVM_VERSION }}
OPENOCD_VERSION=${{ env.OPENOCD_VERSION }}
RENODE_VERSION=${{ env.RENODE_VERSION }}
SPIKE_VERSION=${{ env.SPIKE_VERSION }}