diff --git a/.github/workflows/deploy-to-et.yaml b/.github/workflows/deploy-to-et.yaml new file mode 100644 index 000000000..410de2434 --- /dev/null +++ b/.github/workflows/deploy-to-et.yaml @@ -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/ssh-action@v1.0.0 + with: + host: niue.statbus.org + username: statbus_et + key: ${{ secrets.SSH_KEY }} + command_timeout: 60m + script: /usr/local/bin/deploy-statbus.sh \ No newline at end of file diff --git a/.github/workflows/master-to-et.yaml b/.github/workflows/master-to-et.yaml new file mode 100644 index 000000000..531731a0c --- /dev/null +++ b/.github/workflows/master-to-et.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/production-to-all.yaml b/.github/workflows/production-to-all.yaml index aea3a00c8..edb164b80 100644 --- a/.github/workflows/production-to-all.yaml +++ b/.github/workflows/production-to-all.yaml @@ -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 \ No newline at end of file