mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-24 11:04:18 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 01c78180dd | |||
| 2ecf6776e2 | |||
| dadecdac28 |
@@ -141,7 +141,7 @@ jobs:
|
|||||||
org.opencontainers.image.authors=Geoff Bourne <itzgeoff@gmail.com>
|
org.opencontainers.image.authors=Geoff Bourne <itzgeoff@gmail.com>
|
||||||
|
|
||||||
- name: Setup Docker Buildx
|
- name: Setup Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v4.1.0
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v4.1.0
|
uses: docker/setup-qemu-action@v4.1.0
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
name: Label Sponsor Contributions
|
name: Sponsor Labeler
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
@@ -9,15 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label-sponsor:
|
label-sponsor:
|
||||||
runs-on: ubuntu-latest
|
uses: itzg/github-workflows/.github/workflows/sponsor-labeler.yml@main
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check if sponsor
|
|
||||||
uses: JasonEtco/is-sponsor-label-action@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
label: sponsor
|
author: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}
|
||||||
|
number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Build docs image
|
- name: Build docs image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Docker Buildx
|
- name: Setup Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v4.1.0
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Confirm multi-arch build
|
- name: Confirm multi-arch build
|
||||||
uses: docker/build-push-action@v7.2.0
|
uses: docker/build-push-action@v7.2.0
|
||||||
|
|||||||
@@ -560,6 +560,17 @@ function extract() {
|
|||||||
# remaining args are paths within the archive to extract; if none, extract everything
|
# remaining args are paths within the archive to extract; if none, extract everything
|
||||||
|
|
||||||
type=$(file -b --mime-type "${src}")
|
type=$(file -b --mime-type "${src}")
|
||||||
|
if [[ "$type" == application/octet-stream ]]; then
|
||||||
|
logWarning "Detected non-specific file type $type for $src"
|
||||||
|
case "$src" in
|
||||||
|
*.zip)
|
||||||
|
log "Assuming zip from extension"
|
||||||
|
type=application/zip
|
||||||
|
;;
|
||||||
|
# otherwise fall through to
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
case "${type}" in
|
case "${type}" in
|
||||||
application/zip)
|
application/zip)
|
||||||
unzip -o -q -d "${destDir}" "${src}" "$@"
|
unzip -o -q -d "${destDir}" "${src}" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user