docs: Add 6, update 4 and remove 2 files
This commit is contained in:
43
.gitea/workflows/buildtestpublish.yaml
Normal file
43
.gitea/workflows/buildtestpublish.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Build-Test-Publish
|
||||
run-name: Build test and publish dropshell
|
||||
on: [push]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.jde.nz
|
||||
username: DoesntMatter
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
./build.sh
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
cd source && ./test.sh
|
||||
|
||||
- name: Publish as Latest
|
||||
run: |
|
||||
# Only publish on main branch
|
||||
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
||||
./publish.sh
|
||||
fi
|
||||
|
@@ -1,39 +0,0 @@
|
||||
name: Dropshell Test
|
||||
run-name: Test dropshell
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build_and_Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y openssh-server
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
cd source
|
||||
./install_build_prerequisites.sh
|
||||
- name: Build Native
|
||||
run: |
|
||||
cd source
|
||||
./build_native.sh
|
||||
- name: Test
|
||||
run: |
|
||||
cd source
|
||||
./test.sh
|
||||
- name: Build Production
|
||||
run: |
|
||||
cd source
|
||||
./build_production.sh
|
||||
- name: Test
|
||||
run: |
|
||||
cd source
|
||||
./test.sh
|
||||
- name: Publish
|
||||
run: |
|
||||
cd source
|
||||
./publish.sh
|
||||
|
Reference in New Issue
Block a user