Skip to content

Commit 9f164e4

Browse files
Merge pull request #5741 from NlightNFotis/dockerfile_ghaction_release
Add a release action to github actions for pushing an image dockerhub
2 parents 8b339cf + f7e876d commit 9f164e4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release-packages.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,22 @@ jobs:
206206
asset_path: ${{ steps.create_packages.outputs.msi_installer }}
207207
asset_name: ${{ steps.create_packages.outputs.msi_name }}
208208
asset_content_type: application/x-msi
209+
210+
push-docker-image-dockerhub:
211+
runs-on: ubuntu-20.04
212+
steps:
213+
- name: Checkout CBMC source
214+
uses: actions/checkout@v2
215+
with:
216+
submodules: recursive
217+
- name: Get release info
218+
id: get_release_info
219+
uses: bruceadams/[email protected]
220+
- name: Set Image Tag
221+
run: echo "IMAGE_TAG=diffblue/cbmc:${{ steps.get_release_info.outputs.tag_name }}" >> $GITHUB_ENV
222+
- name: Build docker image
223+
run: docker build -t $IMAGE_TAG .
224+
- name: Push docker image to DockerHub
225+
run: |
226+
docker login --username=dbcicprover --password=${{ secrets.DOCKERHUB_ACCESS_DB_CI_CPROVER }}
227+
docker image push $IMAGE_TAG

0 commit comments

Comments
 (0)