-
Notifications
You must be signed in to change notification settings - Fork 75
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
Showing
2 changed files
with
61 additions
and
5 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,54 @@ | ||
name: Release Docker | ||
# Builds and deploys images to Dockerhub | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Docker tag (e.g. 1.1.0 or stable)' | ||
required: true | ||
default: 'x.y.z' | ||
|
||
env: | ||
# GitHub runners currently have two cores | ||
NR_JOBS: "2" | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy (${{ matrix.buildType.name }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
buildType: | ||
- {name: "Debug", | ||
suffix: "-debug", | ||
Developer: "ON" | ||
} | ||
- {name: "Release", | ||
suffix: "", | ||
Developer: "OFF" | ||
} | ||
steps: | ||
- name: Git clone | ||
uses: actions/checkout@v4 | ||
- name: Build storm from Dockerfile | ||
run: | | ||
docker build -t movesrwth/storm:${{ github.event.inputs.tag }}${{ matrix.buildType.suffix }} . \ | ||
--build-arg BASE_IMG=movesrwth/storm-dependencies:latest${{ matrix.buildType.suffix }} \ | ||
--build-arg build_type="${{ matrix.buildType.name }}" \ | ||
--build-arg developer="${{ matrix.buildType.Developer }}" \ | ||
--build-arg cmake_args="${{ matrix.buildType.cmakeArgs }}" \ | ||
--build-arg no_threads=${NR_JOBS} | ||
# Omitting arguments gurobi_support, soplex_support, spot_support, cln_exact, cln_ratfunc, all_sanitizers | ||
- name: Login to Docker Hub | ||
# Only login if using original repo | ||
if: github.repository_owner == 'moves-rwth' | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.STORM_CI_DOCKER_USERNAME }} | ||
password: ${{ secrets.STORM_CI_DOCKER_TOKEN }} | ||
- name: Deploy storm | ||
# Only deploy if using original repo | ||
if: github.repository_owner == 'moves-rwth' | ||
run: | | ||
docker push movesrwth/storm:${{ github.event.inputs.tag }}${{ matrix.buildType.suffix }} |
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