From bae49f1f0ac83bbd8de2b6fa552cd6f3a74f7e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20H=2E=20Fjeld?= Date: Mon, 9 Sep 2024 17:55:52 +0200 Subject: [PATCH] devops: Add demo deployment task --- .github/workflows/deploy-to-demo.yaml | 19 +++++++++++++++++++ .github/workflows/production-to-all.yaml | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-to-demo.yaml diff --git a/.github/workflows/deploy-to-demo.yaml b/.github/workflows/deploy-to-demo.yaml new file mode 100644 index 000000000..45b9fd20c --- /dev/null +++ b/.github/workflows/deploy-to-demo.yaml @@ -0,0 +1,19 @@ +name: Push master -> devops/deploy-to-demo +on: + push: + branches: + - 'master' + # 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-demo \ No newline at end of file diff --git a/.github/workflows/production-to-all.yaml b/.github/workflows/production-to-all.yaml index c5a799bfc..154c09719 100644 --- a/.github/workflows/production-to-all.yaml +++ b/.github/workflows/production-to-all.yaml @@ -18,4 +18,5 @@ jobs: 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-ma \ No newline at end of file + git push --force origin HEAD:devops/deploy-to-ma + git push --force origin HEAD:devops/deploy-to-demo \ No newline at end of file