Merge branch 'main' into beta-release
Gitea Scan/plate-tool/pipeline/head This commit looks good Details

This commit is contained in:
Emilia Allison 2024-02-13 20:43:18 -05:00
commit 430d0aa845
Signed by: emilia
GPG Key ID: 05D5D1107E5100A1
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,