Skip to content

New Import

New Import #5

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@v2
- name: Docker Build
run: docker build -t buildings .
- name: Compress docker image
run: docker save buildings | gzip > buildings.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: ./buildings.tar.gz
username: ${{ secrets.DAFNI_SERVICE_ACCOUNT_USERNAME }}
password: ${{ secrets.DAFNI_SERVICE_ACCOUNT_PASSWORD }}
version-message: ${{ env.TAG }}
parent-model: "9f927a95-debd-4204-afea-321c79087736"