Skip to content

Model Definition File: SSP #4

Model Definition File: SSP

Model Definition File: SSP #4

Workflow file for this run

name: Upload to DAFNI
on:
release:
types: [published]
jobs:
release:
name: Upload to DAFNI
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Docker Build
run: docker build -t flood_impact_inputs .
- name: Compress docker image
run: docker save flood_impact_inputs | gzip > flood_impact_inputs.tar.gz
- name: Set tag as env
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Upload to DAFNI
uses: dafnifacility/[email protected]
with:
definition-path: ./model-definition.yml
image-path: ./flood_impact_inputs.tar.gz
username: ${{ secrets.DAFNI_SERVICE_ACCOUNT_USERNAME }}
password: ${{ secrets.DAFNI_SERVICE_ACCOUNT_PASSWORD }}
version-message: ${{ env.TAG }}
parent-model: "8169118a-7d80-4e8b-a359-0a7613347382"