v.3.3.3 #17
Workflow file for this run
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
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/rnaindel | |
VERSION_TAG: ${{ github.event.release.tag_name }} | |
run: | | |
jq --arg image "${{ env.IMAGE }}:${{ env.VERSION_TAG }}" '(.requirements | .[] | select(.class == ("DockerRequirement")) | .dockerPull) |= $image' cgc/rnaindel.cwl > cgc/rnaindel.cwl.new | |
mv cgc/rnaindel.cwl.new cgc/rnaindel.cwl | |
cat cgc/rnaindel.cwl | |
- id: cgcdeploy | |
uses: stjudecloud/[email protected] | |
with: | |
file_location: "cgc/rnaindel.cwl" | |
shortid: "stjude/rnaindel/rnaindel" | |
env: | |
CGC_TOKEN: ${{ secrets.CGC_TOKEN }} | |