Skip to content

Commit

Permalink
add startup logging and bump version (#24)
Browse files Browse the repository at this point in the history
* add startup logging and bump version

* add build service workflow file
  • Loading branch information
elvece authored Jan 18, 2024
1 parent dc6045a commit 73306dd
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/buildService.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Service

on:
workflow_dispatch:
pull_request:
paths-ignore: ['*.md']
branches: ['main', 'master']
push:
paths-ignore: ['*.md']
branches: ['main', 'master']

jobs:
BuildPackage:
runs-on: ubuntu-latest
steps:
- name: Prepare StartOS SDK
uses: Start9Labs/sdk@v1

- name: Checkout services repository
uses: actions/checkout@v3

- name: Build the service package
id: build
run: |
git submodule update --init --recursive
start-sdk init
make
PACKAGE_ID=$(yq -oy ".id" manifest.*)
echo "package_id=$PACKAGE_ID" >> $GITHUB_ENV
shell: bash

- name: Upload .s9pk
uses: actions/upload-artifact@v3
with:
name: ${{ env.package_id }}.s9pk
path: ./${{ env.package_id }}.s9pk
4 changes: 4 additions & 0 deletions docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

echo "Starting up..."

export HOST_IP=$(ip -4 route list match 0/0 | awk '{print $3}')

home_type=$(yq e '.homepage.type' start9/config.yaml)
Expand Down Expand Up @@ -113,4 +115,6 @@ EOT
fi
done

echo "Start9 Pages initalized"

exec tini -- nginx -g "daemon off;"
5 changes: 3 additions & 2 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ build = ["make"]
id = "embassy-pages"
license = "MIT"
release-notes = """
* Minor Nextcloud dependency update \n
* Update Nextcloud dependency version and data path \n
* Add startup logging \n
"""
support-site = "https://matrix.to/#/!lMnRwPWnyQvOfAoEnD:matrix.start9labs.com"
title = "Start9 Pages"
upstream-repo = "https://github.com/Start9Labs/start9-pages-startos"
version = "0.1.7.3"
version = "0.1.7.4"
wrapper-repo = "https://github.com/Start9Labs/start9-pages-startos"

[description]
Expand Down

0 comments on commit 73306dd

Please sign in to comment.