Update .gitlab-ci.yml
This commit is contained in:
parent
c0513b7f53
commit
635aa4bb11
|
@ -53,7 +53,7 @@ deploy:datapacks:
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
- cd datapacks
|
- cd datapacks
|
||||||
- rsync -avz out/ "$SERVER_HOST":"$WPD_FOLDER/world/datapacks" --delete --exclude bukkit
|
- rsync --dry-run -avz out/ "$SERVER_HOST":"$WPD_FOLDER/world/datapacks" --delete --exclude bukkit
|
||||||
|
|
||||||
- ssh "$SERVER_HOST" mcrcon -H localhost -p minecraft "minecraft:reload"
|
- ssh "$SERVER_HOST" mcrcon -H localhost -p minecraft "minecraft:reload"
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ deploy:resourcepack:
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
- cd resourcepack-out
|
- cd resourcepack-out
|
||||||
- SHASUM= $(sha1sum resourcepack.zip | awk '{ print $1 }')
|
- SHASUM=$(sha1sum resourcepack.zip | awk '{ print $1 }')
|
||||||
- ssh "$SERVER_HOST" (cd "WPD_FOLDER" && sed-i server.properties "s/resource-pack-sha1=.*/resource-pack-sha1=$SHASUM")
|
- ssh "$SERVER_HOST" (cd "WPD_FOLDER" && sed-i server.properties "s/resource-pack-sha1=.*/resource-pack-sha1=$SHASUM")
|
||||||
|
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in New Issue