mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
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:
parent
fab13597d8
commit
dd944a45c1
26 changed files with 147 additions and 226 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue