yggdrasil-go/contrib
Dmitriy Pervin 284894fe40
Add multi-arch Docker build & GHCR publishing (#1278)
# Summary
This PR addresses failures to run Yggdrasil on ARM systems. The root
cause was the lack of ARM artifacts/images, which led to exec format
error and similar issues.

## What’s added:
- ```Dockerfile.multiarch``` — multi-stage Go build that correctly
propagates GOOS/GOARCH for linux/amd64, linux/arm64, linux/armhf and
linux/armel platform.
- ```entrypoint.sh``` - Introduced ENV **ALLOW_IPV6_FORWARDING**. When
set to a truthy value (e.g., true), the entrypoint executes: ```sysctl
-w net.ipv6.conf.all.forwarding=1```.
- GitHub Action for multi-arch builds and publishing to GHCR — triggered
via ```workflow_dispatch```, push to ```master``` and release via tags
(with docker semantic tags e.g. v0.5.12 → 0.5.12, 0.5, 0).

Example published images:

[https://github.com/Forne/yggdrasil-go/pkgs/container/yggdrasil-go](https://github.com/Forne/yggdrasil-go/pkgs/container/yggdrasil-go)

## Testing
 Ubuntu (24.04, amd64) — image runs correctly.
 macOS (Apple Silicon, arm64) — image runs correctly.
 MikroTik RouterOS (arm64) — image runs under the RouterOS container
package.
2025-10-04 10:51:43 +01:00
..
ansible update to ironwood v0.0.0-20230513191034-495699d87ae4 with API changes 2023-05-13 14:44:38 -05:00
apparmor apparmor: add yggdrasilctl policy (#1235) 2025-04-15 17:17:52 +01:00
busybox-init contrib/busybox-init: add reload and use -useconffile 2019-03-06 11:30:49 +01:00
deb Update Debian package metadata 2024-10-27 20:38:15 +00:00
docker Add multi-arch Docker build & GHCR publishing (#1278) 2025-10-04 10:51:43 +01:00
freebsd Add freebsd service script into contrib 2018-10-06 00:24:07 +01:00
logo Update neilalexander's logo proposal 2018-11-14 19:25:35 +00:00
macos Set hostArchitectures in macOS .pkg installer 2021-12-06 11:19:58 +00:00
mobile Add summary helpers to mobile wrapper 2025-03-31 10:18:57 +01:00
msi Try to fix WiX for Windows MSI builds 2024-05-27 22:52:48 +01:00
openrc contrib/openrc: remove SIGHUP logic (#1236) 2025-04-15 17:15:09 +01:00
semver Build packages in GitHub Actions 2022-04-17 23:38:16 +01:00
systemd Debian package updates (#1073) 2023-10-28 14:58:52 +01:00
yggdrasil-brute-simple remove ygg-brute gitignore 2019-05-18 04:25:57 -07:00
.DS_Store Debian package updates (#1073) 2023-10-28 14:58:52 +01:00