37 lines
908 B
YAML
37 lines
908 B
YAML
name: dropshell-build
|
|
run-name: Build test and publish dropshell-build
|
|
|
|
on: [push]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
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 Base - Multiple Architectures
|
|
run: |
|
|
cd build-base && ./build.sh
|
|
- name: Build Test Applications
|
|
run: |
|
|
cd tests && ./build.sh
|
|
- name: Run Tests
|
|
run: |
|
|
cd tests && ./test.sh
|
|
- name: Publish as Latest
|
|
run: |
|
|
cd build-base && \
|
|
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
|
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
|
./publish.sh
|