Skip to content

Commit

Permalink
Split release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed May 28, 2021
1 parent 291f571 commit e8a9397
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/stable-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: deployment@stable

on:
push:
branches:
- stable

jobs:

source-code:
runs-on: nccrd.saeon.ac.za
steps:
- uses: actions/checkout@v2
with:
ref: stable

deploy:
needs: [source-code]
runs-on: nccrd.saeon.ac.za
steps:
- name: Deploy services
run: >-
NCCRD_API_RESET_SCHEMA=true
SAEON_AUTH_CLIENT_SECRET="${{ secrets.SAEON_AUTH_CLIENT_SECRET}}"
NCCRD_HOSTNAME="https://nccrd.saeon.ac.za"
/usr/local/bin/docker-compose --env-file docker-compose.env up -d --force-recreate --build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: deployment@stable

on:
push:
tags:
- '*'
branches:
- stable

Expand All @@ -12,18 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: stable

deploy:
needs: [source-code]
runs-on: nccrd.saeon.ac.za
steps:
- name: Deploy services
run: >-
NCCRD_API_RESET_SCHEMA=true
SAEON_AUTH_CLIENT_SECRET="${{ secrets.SAEON_AUTH_CLIENT_SECRET}}"
NCCRD_HOSTNAME="https://nccrd.saeon.ac.za"
/usr/local/bin/docker-compose --env-file docker-compose.env up -d --force-recreate --build
ref: stable

pkg-releases:
needs: [source-code]
Expand Down

0 comments on commit e8a9397

Please sign in to comment.