test
All checks were successful
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped
All checks were successful
Build and Push Teamspeak Images on Base Image Update / check-for-changes (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-alpine (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / build-debian (push) Successful in 5s
Build and Push Teamspeak Images on Base Image Update / build-basic (push) Successful in 6s
Build and Push Teamspeak Images on Base Image Update / generate-build-info (push) Successful in 7s
Build and Push Teamspeak Images on Base Image Update / generate-changelogs (push) Has been skipped
This commit is contained in:
@@ -168,6 +168,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Prepare temporary build-info workspace
|
||||||
|
run: mkdir -p upload-repo
|
||||||
|
|
||||||
|
- name: Clone Minecraft repo
|
||||||
|
run: |
|
||||||
|
GIT_CREDENTIAL="${{ secrets.GIT_TOKEN || secrets.GIT_PASSWORD }}"
|
||||||
|
git clone --depth=1 "https://${{ secrets.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/teamspeak-server.git" upload-repo
|
||||||
|
cd upload-repo
|
||||||
|
|
||||||
- name: Generate build-info.json only for updated variants
|
- name: Generate build-info.json only for updated variants
|
||||||
env:
|
env:
|
||||||
IMAGE_REGISTRY: ${{ env.IMAGE_REGISTRY }}
|
IMAGE_REGISTRY: ${{ env.IMAGE_REGISTRY }}
|
||||||
@@ -199,6 +208,10 @@ jobs:
|
|||||||
versions+=("basic")
|
versions+=("basic")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clear old build-info.json files
|
||||||
|
echo "🧹 Clearing old build-info.json files"
|
||||||
|
find . -type f -name build-info.json -exec rm -v {} +
|
||||||
|
|
||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
echo "[INFO] Generating build-info.json for $version"
|
echo "[INFO] Generating build-info.json for $version"
|
||||||
image="${IMAGE_REGISTRY}/${IMAGE_ORG}/${IMAGE_REPO_TS}:${version}"
|
image="${IMAGE_REGISTRY}/${IMAGE_ORG}/${IMAGE_REPO_TS}:${version}"
|
||||||
@@ -247,14 +260,14 @@ jobs:
|
|||||||
}' > "$infofile"
|
}' > "$infofile"
|
||||||
done
|
done
|
||||||
|
|
||||||
# - name: Copy build-info to repo
|
- name: Copy build-info to repo
|
||||||
# run: |
|
run: |
|
||||||
# for version in alpine debian basic; do
|
for version in alpine debian basic; do
|
||||||
# if [ -f "$version/build-info.json" ]; then
|
if [ -f "$version/build-info.json" ]; then
|
||||||
# mkdir -p "$GITHUB_WORKSPACE/$version"
|
mkdir -p "upload-repo/$version"
|
||||||
# cp "$version/build-info.json" "$GITHUB_WORKSPACE/$version/"
|
cp "$version/build-info.json" "upload-repo/$version/"
|
||||||
# fi
|
fi
|
||||||
# done
|
done
|
||||||
|
|
||||||
- name: Commit and push build-info if changed
|
- name: Commit and push build-info if changed
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user