From 51b4d3dfb3b36fac019a7e797540dba90c61b9e5 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Tue, 20 May 2025 22:59:21 +0100 Subject: [PATCH 1/5] Add docker GitHub workflow template --- workflow-templates/docker.yml | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 workflow-templates/docker.yml diff --git a/workflow-templates/docker.yml b/workflow-templates/docker.yml new file mode 100644 index 0000000..2691cb2 --- /dev/null +++ b/workflow-templates/docker.yml @@ -0,0 +1,101 @@ +name: Build and Publish Docker Image + +on: + push: + pull_request: + workflow_dispatch: + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + DEFAULT_BRANCH: ${{ format('refs/heads/{0}', github.event.repository.default_branch) }} + SHOULD_PUSH_IMAGE: ${{ (github.event_name == 'push' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.ref == 'refs/heads/dev')) || github.event_name == 'workflow_dispatch' }} + +jobs: + build-publish-amd64: + name: Build and Publish Docker Image (amd64) + runs-on: ubuntu-latest + + permissions: + contents: read + packages: write + + steps: + - name: Set up QEMU for Docker + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log into the container registry + if: ${{ env.SHOULD_PUSH_IMAGE == 'true' }} + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable=${{ github.ref == env.DEFAULT_BRANCH }} + type=raw,value=edge,enable=${{ github.ref == 'refs/heads/dev' }} + type=sha + + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64 + push: ${{ env.SHOULD_PUSH_IMAGE }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + + build-publish-arm64: + name: Build and Publish Docker Image (arm64) + runs-on: ubuntu-24.04-arm + + permissions: + contents: read + packages: write + + steps: + - name: Set up QEMU for Docker + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log into the container registry + if: ${{ env.SHOULD_PUSH_IMAGE == 'true' }} + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest-arm,enable=${{ github.ref == env.DEFAULT_BRANCH }} + type=raw,value=edge-arm,enable=${{ github.ref == 'refs/heads/dev' }} + type=sha,suffix=-arm + + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v6 + with: + platforms: linux/arm64 + push: ${{ env.SHOULD_PUSH_IMAGE }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max From f3c735ddee8f7bdf4f295fd52bf0751a7fb193df Mon Sep 17 00:00:00 2001 From: William Oldham Date: Tue, 20 May 2025 23:02:05 +0100 Subject: [PATCH 2/5] Create workflow template properties file --- workflow-templates/docker.properties.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 workflow-templates/docker.properties.json diff --git a/workflow-templates/docker.properties.json b/workflow-templates/docker.properties.json new file mode 100644 index 0000000..ab110c4 --- /dev/null +++ b/workflow-templates/docker.properties.json @@ -0,0 +1,11 @@ +{ + "name": "Docker Build Workflow", + "description": "Workflow to build an AMD64 and ARM64 Docker build on push and PR", + "iconName": "package", + "categories": [ + "Docker" + ], + "filePatterns": [ + "^Dockerfile" + ] +} From fd7641e241bfa7560994937199dfd89ac6442b9e Mon Sep 17 00:00:00 2001 From: William Oldham Date: Tue, 20 May 2025 23:02:42 +0100 Subject: [PATCH 3/5] Use correct icon pattern --- workflow-templates/docker.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-templates/docker.properties.json b/workflow-templates/docker.properties.json index ab110c4..fc7aeb6 100644 --- a/workflow-templates/docker.properties.json +++ b/workflow-templates/docker.properties.json @@ -1,7 +1,7 @@ { "name": "Docker Build Workflow", "description": "Workflow to build an AMD64 and ARM64 Docker build on push and PR", - "iconName": "package", + "iconName": "octicon package", "categories": [ "Docker" ], From 7181faff0be6ad3ab986fb389e295b97e981b842 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Mon, 25 Aug 2025 18:42:21 +0100 Subject: [PATCH 4/5] Fix formatting in CONTRIBUTING.md --- .github/CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 612ae57..4066242 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -24,7 +24,8 @@ Thank you for showing interest in contributing to Pretendo Network! As an open s > 2. **Ownership & Rights** – You may only contribute content you own. Do not submit anything that is: > - Owned by someone else (unless properly licensed for this project). > - A trade secret, under NDA, or otherwise confidential. -> 3. **Respect for Nintendo’s IP** – We strictly avoid infringing on Nintendo’s intellectual property. If you have had access to Nintendo’s proprietary materials (legally or otherwise), we may take steps to ensure compliance, including blocking contributions or removing existing ones. +> 3. **Respect for Nintendo’s IP** – We strictly avoid infringing on Nintendo’s intellectual property. If you have had access to Nintendo’s proprietary materials (legally or otherwise), we may take steps to ensure compliance, including blocking contributions or removing existing ones. + Before diving into the contribution process, we recommend familiarizing yourself with our project's existing repositories. By studying our existing codebases, issues, and pull requests you will get a better sense of direction of how we operate. Additionally, please review our [Code of Conduct](CODE_OF_CONDUCT.md) to ensure a respectful and inclusive environment for all participants. Given that our project's main goal is to emulate Nintendo Network, it is also highly recommended that you familiarize yourself with how these services operate. Information on these topics, and our libraries, can be found both on our [wiki](https://nintendo-wiki.pretendo.network/docs/) and our (in progress) [developer documentation](https://developer.pretendo.network/home). @@ -125,4 +126,4 @@ We ask that you have patience with us as we review your pull request. Pretendo N We do not require 100% code coverage in any tests. We do not currently have strict rules regarding tests, however we may ask that tests be provided for large or complex changes. # Licensing -Unless otherwise specified all code is licensed under [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0), including that of outside contributions. This license allows users many freedoms to use our code in their own applications, including private and commercial use, while ensuring that all derivatives remain under this same license and keeps the source available, even when used over a network. A repository's license may not be changed by outside contributors unless that change is done with good reason, has been approved by the core development team, and is done with the consent of all relevant contributors. \ No newline at end of file +Unless otherwise specified all code is licensed under [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0), including that of outside contributions. This license allows users many freedoms to use our code in their own applications, including private and commercial use, while ensuring that all derivatives remain under this same license and keeps the source available, even when used over a network. A repository's license may not be changed by outside contributors unless that change is done with good reason, has been approved by the core development team, and is done with the consent of all relevant contributors. From e89ff9101e3631f71556c392835327480eed085f Mon Sep 17 00:00:00 2001 From: kitten Date: Fri, 7 Aug 2026 05:25:49 +0200 Subject: [PATCH 5/5] fix for fj --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 94e7122..8c89dfd 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,18 @@ -# Pretendo Network +# About Pretendo Network +Pretendo is an open source Nintendo Network replacement that aims to build custom servers for the Wii U and 3DS family of consoles. Our goal is to preserve the online functionality of these consoles, to allow players to continue to play their favorite Wii U and 3DS games to their fullest capacity. -This special repository contains community files and common templates. +For more information on the project such as current goals, project status and other news, visit [our website](https://pretendo.network). -## Contents +As a fully open-source project, Pretendo welcomes contributions made by the community. If you are interested in contributing, please refer to the [contribution guide](../.github/CONTRIBUTING.md). -* [License](LICENSE) -* [Security Policy](.github/SECURITY.md) -* [Code of Conduct](.github/CODE_OF_CONDUCT.md) -* [Contribution Guide](.github/CONTRIBUTING.md) +## Official Links + +* [Website](https://pretendo.network) +* [Discord](https://discord.gg/pretendo) +* [Forum](https://forum.pretendo.network/) +* [Twitter](https://twitter.com/pretendonetwork) + + +## License + +This project is licensed under the [GNU Affero General Public License version 3](../LICENSE)