Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaButters authored Jul 12, 2024
1 parent b16b860 commit 7fceaa4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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"

0 comments on commit 7fceaa4

Please sign in to comment.