Skip to content

Commit

Permalink
test: add more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xMikux committed Sep 13, 2024
1 parent ebbf5ee commit c6be47b
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ services:
container_name: itemsadder_server
image: ghcr.io/xmikux/itemsadder-image:latest
volumes:
# - type: bind
# source: ${PWD}/external
# target: /app/external
- type: bind
source: ${PWD}/external
target: /app/external
- type: bind
source: ${PWD}/Resourcepack/contents
target: /app/plugins/ItemsAdder/contents
Expand Down
61 changes: 47 additions & 14 deletions .github/workflows/resuable_ia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,29 @@ jobs:
with:
fetch-depth: 0

# - name: Setup - S3cmd Cli Tool
# uses: s3-actions/[email protected]
# with:
# provider: "vultr"
# region: "sgp1"
# access_key: ${{ secrets.S3_ACCESS_KEY }}
# secret_key: ${{ secrets.S3_SECRET_KEY }}

# - name: S3 - Download Plugins
# run: |
# s3cmd get s3://${{ secrets.S3_BUCKET_NAME }}/itemsaddres maps-cache-data.tar.xz
- name: Setup - S3cmd Cli Tool
uses: s3-actions/[email protected]
with:
provider: "vultr"
region: "sgp1"
access_key: ${{ secrets.S3_ACCESS_KEY }}
secret_key: ${{ secrets.S3_SECRET_KEY }}

-
name: Setup - mcrcon
run: |
mkdir tools
cd tools || exit 1
wget -O mcrcon.tar.gz https://github.com/Tiiffi/mcrcon/releases/download/v0.7.2/mcrcon-0.7.2-linux-x86-64.tar.gz
tar xzvf mcrcon.tar.gz
rm LICENSE mcrcon.tar.gz
working-directory: .github


- name: S3 - Download Plugins
run: |
mkdir external
s3cmd get s3://${{ secrets.S3_BUCKET_NAME }}/itemsadder/ItemsAdder.jar external/ItemsAdder.jar
-
name: Setup - IA Minecraft Server
Expand All @@ -50,8 +62,29 @@ jobs:
with:
container-name: itemsadder_server
timeout: 60

- name: DEBUG - Get compose log

-
name: mcrcon - Run IA commands
run: |
$GITHUB_WORKSPACE/.github/tools/mcrcon -w 10 "iareload" "iazip"
env:
MCRCON_PASS: ${{ secrets.RCON_PASSWORD }}

-
name: DEBUG - Get compose log
run: |
docker compose -f .github/compose/docker-compose.yml logs > .github/compose.log
cat .github/compose.log
-
name: DEBUG - Upload compose log
uses: actions/upload-artifact@v4
with:
name: compose-log
path: .github/compose.log

-
name: DEBUG - Upload generated pack
uses: actions/upload-artifact@v4
with:
name: ia_generatedpack
path: output/*.zip

0 comments on commit c6be47b

Please sign in to comment.