GitHub actions testing (#107)

* test 1

* test 2

* remove accidental pasting in commit

* removed multi-platform for dev

* Revert "Add button to delete machine route"

This reverts commit 63041fd673.

* modernized release workflow

* update version

* Migration to Svelte 4

* cleaned up version injection

* moved build arg below FROM

* increment release
This commit is contained in:
routerino 2023-06-25 17:00:13 +10:00 committed by GitHub
parent fab13597d8
commit dd944a45c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 147 additions and 226 deletions

View file

@ -49,14 +49,4 @@ USER dev-user
WORKDIR /data
ENTRYPOINT /bin/sh /staging/scripts/2-initialise.sh#!/bin/sh
#----#
# placeholder for testing
# while true; do sleep 1; done
#----#
# set file permissions if required
if [ $(id -u) -ne $(stat -c %u /data) ]
then
…fi
ENTRYPOINT /bin/sh /staging/scripts/2-initialise.sh

View file

@ -1,10 +1,10 @@
FROM node:lts AS build
# arguments
ARG VERSION="master"
# Branch to check out
ARG CHECKOUT_BRANCH="master"
FROM node:lts AS build
#environment variables
ENV PROJECT_NAME="headscale-ui"
# URL for the github/git location

View file

@ -2,9 +2,8 @@
set -x
# add dependencies
# jq for parsing version information
# git for cloning the repository
apk add --no-cache jq git
apk add --no-cache git
#clone the project
git clone ${PROJECT_URL} ${PROJECT_NAME}
@ -15,7 +14,6 @@ git checkout ${CHECKOUT_BRANCH}
npm install
# inject the version number
VERSION=$(jq -r '.version' package.json)
sed -i "s/insert-version/${VERSION}/g" ./src/routes/settings.html/+page.svelte
# build the project