Skip to content

Commit

Permalink
rename workflows
Browse files Browse the repository at this point in the history
add deploy buffer period
  • Loading branch information
eliknebel committed Mar 25, 2021
1 parent 5c0dbbb commit a7103b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy Release
name: Deploy

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # production release tags vX.Y.Z
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+' # release candidate tags vX.Y.Z-rc1
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' # release candidate tags vX.Y.Z-rc1

jobs:
deploy-release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
tags:
- package # manually trigger a build
- package # manually trigger a package build
- deploy-test # manually trigger build and deploy to test

jobs:
Expand Down Expand Up @@ -37,6 +37,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/tags/deploy-test' }}
with:
command: |
sleep 10 # add a buffer period between artifact upload and download
cd /torus
sh deploy.sh ${{ steps.info.outputs.app_version }} ${{ steps.info.outputs.sha_short }} ${{ secrets.ACCESS_TOKEN }}
host: ${{ steps.info.outputs.deploy_host }}
Expand Down

0 comments on commit a7103b8

Please sign in to comment.