Skip to content

Commit

Permalink
devops: Add ma deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhf committed May 30, 2024
1 parent 481db1a commit 9f09709
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-to-ma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "ma.statbus.org<-devops/deploy-to-ma"
on:
# Allow manual deployment in github
workflow_dispatch:
push:
branches:
- devops/deploy-to-ma

# Deploys are serial for a deploy branch.
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands
uses: appleboy/[email protected]
with:
host: libu.statbus.org
username: statbus_ma
key: ${{ secrets.SSH_KEY }}
command_timeout: 60m
script: /usr/local/bin/deploy-statbus.sh
16 changes: 16 additions & 0 deletions .github/workflows/master-to-ma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Push master -> devops/deploy-to-ma
on:
# Allow manual deployment in github
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'master'
ssh-key: ${{ secrets.SSH_KEY }}
- name: Push for deployment
run: |
git push --force origin HEAD:devops/deploy-to-ma
3 changes: 2 additions & 1 deletion .github/workflows/production-to-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ jobs:
- name: Push for deployment
run: |
git push --force origin HEAD:devops/deploy-to-no
git push --force origin HEAD:devops/deploy-to-tcc
git push --force origin HEAD:devops/deploy-to-tcc
git push --force origin HEAD:devops/deploy-to-ma

0 comments on commit 9f09709

Please sign in to comment.