Merge branch 'main' into beta-release
Gitea Scan/plate-tool/pipeline/head This commit looks good
Details
Gitea Scan/plate-tool/pipeline/head This commit looks good
Details
This commit is contained in:
commit
430d0aa845
|
@ -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"
|
|
@ -4,6 +4,9 @@ pipeline {
|
||||||
OUTPUT_DIR = "${env.BRANCH_NAME == "main" ? "plate-tool" : "plate-tool-beta"}"
|
OUTPUT_DIR = "${env.BRANCH_NAME == "main" ? "plate-tool" : "plate-tool-beta"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Parent') {
|
||||||
|
when { anyOf { branch 'main'; branch 'beta-release' } }
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
|
@ -32,6 +35,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
cleanWs(notFailBuild: true,
|
cleanWs(notFailBuild: true,
|
||||||
|
|
Loading…
Reference in New Issue