-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds an automation to build a docker image for the latest release (#1480
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish the Latest Release to Docker | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Publish Ubuntu image to Registry | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: binaryanalysisplatform/bap:2.4.0 | ||
file: docker/2.4.0/Dockerfile |
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,10 @@ | ||
FROM ocaml/opam:debian | ||
|
||
WORKDIR /home/opam | ||
|
||
RUN opam remote set-url default https://opam.ocaml.org \ | ||
&& opam update \ | ||
&& opam depext --update --install bap.2.4.0 --yes -j 1 \ | ||
&& opam clean -acrs | ||
|
||
ENTRYPOINT ["opam", "config", "exec", "--"] |