mirror of
https://github.com/iLLeniumStudios/fivem-resource-watcher
synced 2024-02-26 13:38:52 +01:00
Add curl to dockerfile
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# Container image that runs your code
|
# Container image that runs your code
|
||||||
FROM alpine:3.17
|
FROM alpine:3.17
|
||||||
|
|
||||||
RUN apk add --no-cache git jq
|
RUN apk add --no-cache git jq curl
|
||||||
|
|
||||||
# Use icecon instead. For some reason rcon-cli doesn't send a valid command
|
# Use icecon instead. For some reason rcon-cli doesn't send a valid command
|
||||||
#ARG RCON_VERSION="0.10.2"
|
#ARG RCON_VERSION="0.10.2"
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
name: "Sync and Restart Resources"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
sync-restart:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: "Pull remote changes"
|
||||||
|
uses: appleboy/ssh-action@v0.1.7
|
||||||
|
env:
|
||||||
|
REPO_PATH: "C:/ServerResources"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: Administrator
|
||||||
|
#key: ${{ secrets.SSH_KEY }}
|
||||||
|
password: ${{ secrets.SSH_PASSWORD }}
|
||||||
|
port: 22
|
||||||
|
script: |
|
||||||
|
cd ${{ env.REPO_PATH }} && git pull
|
||||||
|
- name: "Restart resources / server"
|
||||||
|
uses: illeniumstudios/fivem-resource-watcher@main
|
||||||
|
env:
|
||||||
|
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
|
||||||
|
with:
|
||||||
|
serverIP: ${{ secrets.SSH_HOST }}
|
||||||
|
serverPort: 30120
|
||||||
|
rconPassword: ${{ secrets.RCON_PASSWORD }}
|
||||||
|
restartIndividualResources: true
|
||||||
|
resourcesToIgnore: ""
|
||||||
|
restartServerWhen0Players: false
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
name: "Sync and Restart Resources"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
sync-restart:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: "Pull remote changes"
|
||||||
|
uses: appleboy/ssh-action@v0.1.7
|
||||||
|
env:
|
||||||
|
REPO_PATH: "C:/ServerResources"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: Administrator
|
||||||
|
#key: ${{ secrets.SSH_KEY }}
|
||||||
|
password: ${{ secrets.SSH_PASSWORD }}
|
||||||
|
port: 22
|
||||||
|
script: |
|
||||||
|
cd ${{ env.REPO_PATH }} && git pull
|
||||||
|
- name: "Restart resources / server"
|
||||||
|
uses: illeniumstudios/fivem-resource-watcher@main
|
||||||
|
env:
|
||||||
|
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
|
||||||
|
with:
|
||||||
|
serverIP: ${{ secrets.SSH_HOST }}
|
||||||
|
serverPort: 30120
|
||||||
|
rconPassword: ${{ secrets.RCON_PASSWORD }}
|
||||||
|
restartIndividualResources: true
|
||||||
|
resourcesToIgnore: ""
|
||||||
|
restartServerWhen0Players: false
|
||||||
Reference in New Issue
Block a user