From 95b81a7858ea3c988b71e53644904f39a13dcc04 Mon Sep 17 00:00:00 2001 From: Emilia Date: Sat, 30 Dec 2023 13:14:29 -0500 Subject: [PATCH 1/2] CI for deploy to beta --- .gitea/workflows/beta-deploy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/beta-deploy.yaml diff --git a/.gitea/workflows/beta-deploy.yaml b/.gitea/workflows/beta-deploy.yaml new file mode 100644 index 0000000..596a458 --- /dev/null +++ b/.gitea/workflows/beta-deploy.yaml @@ -0,0 +1,24 @@ +name: Beta Deploy +on: + push: + branches: + - beta-release + +jobs: + Compile-Plate-Tool: + runs-on: linux_arm + steps: + - name: Check out repo code + uses: https://github.com/actions/checkout@v4 + with: + ref: "beta-release" + - name: Compile plate-tool + run: | + . "$HOME/.cargo/env" + trunk build --release --public-url "cool-stuff/plate-tool-beta/" + - name: Transfer files to host server + run: | + sftp oracle <<< "put -r dist" + - name: Deploy plate-tool-beta on host server + run: | + ssh oracle "sudo rm -rf /usr/share/nginx/html/plate-tool-beta/ && sudo mv dist /usr/share/nginx/html/plate-tool-beta" From bf09f281b3c3051e61348fe754c7f40e05070a61 Mon Sep 17 00:00:00 2001 From: Emilia Date: Tue, 13 Feb 2024 20:38:45 -0500 Subject: [PATCH 2/2] Revise jenkinsfile, only run on main and beta --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d5eb792..551fe13 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,9 @@ pipeline { } stages { + stage('Parent') { + when { anyOf { branch 'main'; branch 'beta-release' } } + stages { stage('Build') { steps { sh ''' @@ -32,6 +35,8 @@ pipeline { } } } + } + } post { always { cleanWs(notFailBuild: true,