Skip to content

Commit

Permalink
adds an automation to build a docker image for the latest release (#1480
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ivg authored Apr 27, 2022
1 parent 167501a commit 8d2f42d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-docker-image-release.yml
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
10 changes: 10 additions & 0 deletions docker/2.4.0/Dockerfile
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", "--"]

0 comments on commit 8d2f42d

Please sign in to comment.