Files
dropshell/.gitea/workflows/buildtestpublish.yaml
j842 efd11657ac
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 59s
Build-Test-Publish / build (linux/arm64) (push) Failing after 2m45s
docs: Add 6, update 4 and remove 2 files
2025-08-17 21:01:38 +12:00

44 lines
928 B
YAML

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