-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ec6727
commit 3c1bfad
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
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
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
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 | ||
|
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
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 |