[PR #3958] [CLOSED] Docker multiarch manifest + cross build #17166

Closed
opened 2025-11-02 12:28:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3958
Author: @sapk
Created: 5/13/2018
Status: Closed

Base: masterHead: docker-multiarch


📝 Commits (10+)

  • 6be964d Setup linux/amd64 + manifest
  • 5348562 fix template
  • 1059763 generate os-arch via DRONE_ARCH
  • 5d0fac9 Add docker-cross todo cross build of docker image
  • 028c259 Add make docker-setup-clean
  • b72b3c0 Working (limited) docker-cross build
  • 0bbc581 Use xgo for cross-build -> fix cgo + generate
  • ee8df71 Activate cross-build on drone
  • 4c8272e drone: update docker stage to golang:1.11 like the rest
  • 1b233f2 docker: update golang default version

📊 Changes

5 files changed (+170 additions, -9 deletions)

View changed files

📝 .drone.yml (+102 -2)
📝 .gitignore (+3 -0)
📝 Dockerfile (+10 -4)
📝 Makefile (+5 -1)
📝 docker/Makefile (+50 -2)

📄 Description

This PR will change the name of the image build and published to the format $version-$os-$arch of the running builder so for now only $version-linux-amd64.
This PR also add a manifest upload for the tag of previous format $version that will provide a multi-arch manifest/image. (only for currently linux/amd64)

This lay down some structure to be able to provide multi-arch image so that a docker run gitea/gitea could work on any platform.

To add a platform we will only need a build on this platform and add it to the list of platform supported to the manifest here


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3958 **Author:** [@sapk](https://github.com/sapk) **Created:** 5/13/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `docker-multiarch` --- ### 📝 Commits (10+) - [`6be964d`](https://github.com/go-gitea/gitea/commit/6be964d8d117332e7b85ef1e2b6998345d78a33d) Setup linux/amd64 + manifest - [`5348562`](https://github.com/go-gitea/gitea/commit/53485621c91e4b8b0d18f734c614fa1c6bb3d229) fix template - [`1059763`](https://github.com/go-gitea/gitea/commit/105976358b3ac1b10222546ebaf7f08210afa7f8) generate os-arch via DRONE_ARCH - [`5d0fac9`](https://github.com/go-gitea/gitea/commit/5d0fac99150c50f6a4e15ce0226b649dadd65f23) Add docker-cross todo cross build of docker image - [`028c259`](https://github.com/go-gitea/gitea/commit/028c25979186124ba22f959b2e967182548de320) Add make docker-setup-clean - [`b72b3c0`](https://github.com/go-gitea/gitea/commit/b72b3c05d6ea36f234c7d99e1eb148fecaba99e0) Working (limited) docker-cross build - [`0bbc581`](https://github.com/go-gitea/gitea/commit/0bbc5814e0860db75d896af4a90693c5a5e52ba8) Use xgo for cross-build -> fix cgo + generate - [`ee8df71`](https://github.com/go-gitea/gitea/commit/ee8df713f128e6c73aa205cbc250089fff46a4cd) Activate cross-build on drone - [`4c8272e`](https://github.com/go-gitea/gitea/commit/4c8272e034ba2e1505d88b523bec3251a2ce11e4) drone: update docker stage to golang:1.11 like the rest - [`1b233f2`](https://github.com/go-gitea/gitea/commit/1b233f2906d6977701ee4360153513c50ac29879) docker: update golang default version ### 📊 Changes **5 files changed** (+170 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `.drone.yml` (+102 -2) 📝 `.gitignore` (+3 -0) 📝 `Dockerfile` (+10 -4) 📝 `Makefile` (+5 -1) 📝 `docker/Makefile` (+50 -2) </details> ### 📄 Description This PR will change the name of the image build and published to the format $version-$os-$arch of the running builder so for now only $version-linux-amd64. This PR also add a manifest upload for the tag of previous format $version that will provide a multi-arch manifest/image. (only for currently linux/amd64) This lay down some structure to be able to provide multi-arch image so that a `docker run gitea/gitea` could work on any platform. ~To add a platform we will only need a build on this platform and add it to the list of platform supported to the manifest [here](https://github.com/go-gitea/gitea/compare/master...sapk-fork:docker-multiarch?expand=1#diff-3216dfff0ed3e301453e6799e8c367e2R269)~ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:28:05 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17166