-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Docker: Fix geodata directory permissions issue #4790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+2
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
当时没详尽地完整测试
需要你手工删除ghcr.io中刚发布的 |
只是 docker 镜像的问题的话还好,所以可以手动触发发布新版镜像吗 |
手动的话要临时修改workflow,稍等下我试试 |
可以临时用这个docker.yml单独发docker的版 写死的标签 name: Build docker image
on:
workflow_dispatch:
push:
release:
types: [published]
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/xray-core
tags: |
type=raw,value=latest
type=raw,value=25.6.7
- name: Docker metadata (unsupported architectures)
id: metausa
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/xray-core
tags: |
type=raw,value=latest-usa
type=raw,value=25.6.7-usa
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: |
linux/amd64
linux/arm/v7
linux/arm64/v8
linux/ppc64le
linux/s390x
provenance: false
file: .github/docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Build and push (unsupported architectures)
uses: docker/build-push-action@v6
with:
context: .
platforms: |
linux/386
linux/arm/v6
linux/riscv64
linux/loong64
provenance: false
file: .github/docker/Dockerfile.usa
push: true
tags: ${{ steps.metausa.outputs.tags }}
- name: Merge Multi-Arch Manifests
run: |
echo "Starting to merge multi-architecture manifests..."
# Convert newlines to spaces and split into array
TAGS=($(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ' '))
echo "Total tags to process: ${#TAGS[@]}"
for tag in "${TAGS[@]}"; do
echo "Merging tag: $tag with unsupported architectures ($tag-usa)"
docker buildx imagetools create --append --tag "$tag" "$tag-usa"
if [ $? -ne 0 ]; then
echo "Error: Failed to merge $tag-usa into $tag"
exit 1
fi
done
echo "Multi-architecture manifest merge completed successfully." |
huliganstreet
approved these changes
Jun 7, 2025
我决定还是今天发个新版吧,顺便把你那个 REALITY 回落限速给合了 |
1 task
patterniha
pushed a commit
to patterniha/Xray-core
that referenced
this pull request
Jun 11, 2025
patterniha
pushed a commit
to patterniha/Xray-core
that referenced
this pull request
Jun 11, 2025
patterniha
pushed a commit
to patterniha/Xray-core
that referenced
this pull request
Jun 12, 2025
patterniha
pushed a commit
to patterniha/Xray-core
that referenced
this pull request
Jun 28, 2025
maoxikun
pushed a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 23, 2025
Fixes XTLS#4747 (comment) (cherry picked from commit 7d36cad)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解决
/usr/local/share/xray
目录缺少x权限,导致geodata无法加载的问题