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 | |
|---|---|---|---|
| cce4b00176 | |||
| 2ecf6776e2 | |||
| dadecdac28 |
@@ -147,7 +147,7 @@ jobs:
|
||||
uses: docker/setup-qemu-action@v4.1.0
|
||||
|
||||
- name: Build for test
|
||||
uses: docker/build-push-action@v7.2.0
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
tags: ${{ env.IMAGE_TO_TEST }}
|
||||
@@ -187,7 +187,7 @@ jobs:
|
||||
password: ${{ github.token }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7.2.0
|
||||
uses: docker/build-push-action@v7
|
||||
if: github.actor == github.repository_owner
|
||||
with:
|
||||
platforms: ${{ matrix.platforms }}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name: Label Sponsor Contributions
|
||||
name: Sponsor Labeler
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
@@ -9,15 +10,7 @@ on:
|
||||
|
||||
jobs:
|
||||
label-sponsor:
|
||||
runs-on: ubuntu-latest
|
||||
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:
|
||||
label: sponsor
|
||||
uses: itzg/github-workflows/.github/workflows/sponsor-labeler.yml@main
|
||||
with:
|
||||
author: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}
|
||||
number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build docs image
|
||||
uses: docker/build-push-action@v6
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
file: docs/Dockerfile
|
||||
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v4.1.0
|
||||
|
||||
- name: Confirm multi-arch build
|
||||
uses: docker/build-push-action@v7.2.0
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
platforms: ${{ matrix.platforms }}
|
||||
# ensure latest base image is used
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
cache-from: type=gha,scope=${{ matrix.variant }}
|
||||
|
||||
- name: Build for test
|
||||
uses: docker/build-push-action@v7.2.0
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
# Only build single platform since loading multi-arch image into daemon fails with
|
||||
# "docker exporter does not currently support exporting manifest lists"
|
||||
|
||||
@@ -560,6 +560,17 @@ function extract() {
|
||||
# remaining args are paths within the archive to extract; if none, extract everything
|
||||
|
||||
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
|
||||
application/zip)
|
||||
unzip -o -q -d "${destDir}" "${src}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user