Skip to content

Commit

Permalink
devops: Add missing et deployment jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhf committed Oct 23, 2024
1 parent 0d48006 commit 8e3fe0b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-to-et.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: "et.statbus.org<-devops/deploy-to-et"
on:
# Allow manual deployment in github
workflow_dispatch:
push:
branches:
- devops/deploy-to-et

# 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: niue.statbus.org
username: statbus_et
key: ${{ secrets.SSH_KEY }}
command_timeout: 60m
script: /usr/local/bin/deploy-statbus.sh
16 changes: 16 additions & 0 deletions .github/workflows/master-to-et.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Push master -> devops/deploy-to-et
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-et
1 change: 1 addition & 0 deletions .github/workflows/production-to-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
git push --force origin HEAD:devops/deploy-to-tcc
git push --force origin HEAD:devops/deploy-to-ug
git push --force origin HEAD:devops/deploy-to-ma
git push --force origin HEAD:devops/deploy-to-et
git push --force origin HEAD:devops/deploy-to-demo

0 comments on commit 8e3fe0b

Please sign in to comment.