Skip to content

singularity-ready

singularity-ready #162

# This is a basic workflow to help you get started with Actions
name: CI Singularity
# Controls when the action will run.
on:
repository_dispatch:
types: [singularity-ready]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
name: Deploy to Singularity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: deployment
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
environment: production
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
state: "success"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
state: "failure"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}