mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 04:17:00 +00:00
update
This commit is contained in:
parent
461fb93ccb
commit
23b9cf2a1b
3
.github/workflows/docker-image.yaml
vendored
3
.github/workflows/docker-image.yaml
vendored
@ -35,6 +35,7 @@ jobs:
|
||||
run: |
|
||||
echo "IMAGE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
echo "IMAGE_TAG=${IMAGE_TAG//./-}" >> $GITHUB_ENV
|
||||
echo "RELEASE_TAG=,ghcr.io/${IMAGE_NAME}:latest" >> $GITHUB_ENV
|
||||
|
||||
- name: Push to GitHub Container Registry
|
||||
uses: docker/build-push-action@v4
|
||||
@ -42,4 +43,4 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
|
||||
tags: ghcr.io/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}${{ env.RELEASE_TAG }}
|
||||
|
@ -79,9 +79,6 @@ screen -L -Logfile /var/vlogs/tor -dmS tor bash -c "tor -f /etc/tor/torrc"
|
||||
# Starting Redis server in detached mode
|
||||
screen -L -Logfile /var/vlogs/redis -dmS redis bash -c "redis-server --port 6479 --daemonize no --dir /data --appendonly yes"
|
||||
|
||||
# After 5 seconds, export the database to the WireGuard config file
|
||||
screen -dm bash -c "sleep 5; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/regen"
|
||||
|
||||
sleep 1
|
||||
echo -e "\n======================== Versions ========================"
|
||||
echo -e "Alpine Version: \c" && cat /etc/alpine-release
|
||||
@ -93,4 +90,7 @@ cat /etc/tor/torrc
|
||||
echo -e "========================================================\n"
|
||||
sleep 1
|
||||
|
||||
# After 10 seconds, export the database to the WireGuard config file
|
||||
screen -dm bash -c "sleep 10; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/regen"
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user