-
Notifications
You must be signed in to change notification settings - Fork 34
Enhance Organization Mirroring with Improved Reliability and New Options #34
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
Open
arunavo4
wants to merge
14
commits into
jaedle:main
Choose a base branch
from
arunavo4:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
addaa0f
Enhance organization mirroring with improved reliability, fallback me…
arunavo4 efdb226
Add troubleshooting section to README for organization mirroring issues
arunavo4 9d975cb
Refactor environment variable assignments in scripts for consistency
arunavo4 1253c55
feat: Add public organization mirroring and remove hardcoded values
arunavo4 9b0fd27
test: Update tests for new public organization mirroring feature
arunavo4 046fbd3
fix: Prevent early return in organization handling
arunavo4 f234b65
fix: Improve organization repository fetching and add detailed logging
arunavo4 a4098c9
fix: Fix syntax error in src/index.mjs for Docker build
arunavo4 e1dd948
fix: Properly fetch repositories from detected organizations
arunavo4 e59e6dd
fix: Add detected organizations to includeOrgs for repository fetching
arunavo4 0af1b88
fix: Add default organizations when none are specified or found
arunavo4 da65c95
feat: Add GitHub Actions workflows for Astro build, Docker build, and…
arunavo4 213b125
Revert "feat: Add GitHub Actions workflows for Astro build, Docker bu…
arunavo4 7c3033e
feat: Implement multi-architecture Docker image build and push script
arunavo4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
# Script to build and push multi-architecture Docker images for mirror-to-gitea | ||
|
||
DOCKER_USERNAME="arunavo4" | ||
REPO_NAME="mirror-to-gitea" | ||
TAG="latest" | ||
BUILDER_NAME="multiarch-builder" | ||
|
||
# Check if builder exists, else create with docker-container driver | ||
if ! docker buildx inspect "$BUILDER_NAME" >/dev/null 2>&1; then | ||
echo "Creating buildx builder '$BUILDER_NAME' with docker-container driver..." | ||
docker buildx create --name "$BUILDER_NAME" --driver docker-container --use | ||
else | ||
echo "Using existing buildx builder '$BUILDER_NAME'" | ||
docker buildx use "$BUILDER_NAME" | ||
fi | ||
|
||
# Ensure builder is bootstrapped | ||
docker buildx inspect --bootstrap | ||
|
||
echo "Building and pushing multi-architecture images for $DOCKER_USERNAME/$REPO_NAME:$TAG" | ||
docker buildx build --platform linux/amd64,linux/arm64 \ | ||
--tag $DOCKER_USERNAME/$REPO_NAME:$TAG \ | ||
--push \ | ||
. | ||
|
||
if [ ! -z "$1" ]; then | ||
VERSION_TAG="$1" | ||
echo "Also tagging as $DOCKER_USERNAME/$REPO_NAME:$VERSION_TAG" | ||
docker buildx build --platform linux/amd64,linux/arm64 \ | ||
--tag $DOCKER_USERNAME/$REPO_NAME:$VERSION_TAG \ | ||
--push \ | ||
. | ||
fi | ||
|
||
echo "Multi-architecture images built and pushed successfully!" | ||
echo "Supported architectures:" | ||
echo "- linux/amd64 (Intel/AMD 64-bit)" | ||
echo "- linux/arm64 (ARM 64-bit, e.g., Apple Silicon, newer Raspberry Pi)" | ||
|
||
echo "" | ||
echo "Usage:" | ||
echo "docker pull $DOCKER_USERNAME/$REPO_NAME:$TAG" | ||
echo "" | ||
echo "Docker will automatically select the correct image for your architecture." |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably needs changing for this repo :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea missed it thanks, will update it with other stuff