Compare commits

..

4 Commits

Author SHA1 Message Date
Emilia Allison 430d0aa845
Merge branch 'main' into beta-release
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
2024-02-13 20:43:18 -05:00
Emilia Allison bf09f281b3
Revise jenkinsfile, only run on main and beta
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
2024-02-13 20:38:45 -05:00
Emilia Allison ca5c15756e Merge pull request 'Update main version' (#7) from beta-release into main
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
Reviewed-on: #7
2024-01-31 02:00:40 +00:00
Emilia Allison 95b81a7858
CI for deploy to beta
Beta Deploy / Compile-Plate-Tool (push) Successful in 1m34s Details
2023-12-30 13:14:29 -05:00
2 changed files with 29 additions and 0 deletions

View File

@ -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"

5
Jenkinsfile vendored
View File

@ -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,