-
Notifications
You must be signed in to change notification settings - Fork 20
28 lines (27 loc) · 925 Bytes
/
cgc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: "Deploy to CGC"
on:
release:
types: [released, edited]
jobs:
cgc:
runs-on: ubuntu-20.04
name: "Deploy"
steps:
- uses: actions/checkout@v2
- name: Set the docker tag from Repo Tag
id: set_dockertag
env:
IMAGE: cgc-images.sbgenomics.com/stjude/cicero
VERSION_TAG: ${{ github.event.release.tag_name }}
run: |
jq --arg image "${{ env.IMAGE }}:${{ env.VERSION_TAG }}" '(.requirements | .[] | select(.class == ("DockerRequirement")) | .dockerPull) |= $image' cgc/cicero.cwl > cgc/cicero.cwl.new
mv cgc/cicero.cwl.new cgc/cicero.cwl
cat cgc/cicero.cwl
- id: cgcdeploy
uses: stjudecloud/cgc-go@v0.1.4
with:
file_location: "cgc/cicero.cwl"
shortid: "stjude/cicero/cicero"
devkey: ${{ secrets.CGC_TOKEN }}
env:
CGC_TOKEN: ${{ secrets.CGC_TOKEN }}