paketo-buildpacks / noble-base-stack

Base stack for Ubuntu 2024.04: Noble Numbat
Apache License 2.0
0 stars 2 forks source link

Multi arch implementation. #10

Open pacostas opened 2 days ago

pacostas commented 2 days ago

Merge After

  1. https://github.com/paketo-buildpacks/github-config/pull/994
  2. https://github.com/paketo-buildpacks/github-config/pull/992
  3. https://github.com/paketo-buildpacks/github-config/pull/984
  4. https://github.com/paketo-buildpacks/noble-base-stack/pull/9
  5. https://github.com/paketo-buildpacks/noble-base-stack/pull/8
  6. https://github.com/paketo-buildpacks/noble-base-stack/pull/7

Summary

This PR adds support for producing multi-arch artifacts based on the implementation of the jammy-tiny-stack.

Supports:

This PR has been tested various times on multiple repositories, although issues might arise. Therefore, I'm committed to watching for any errors and immediately opening a PR to fix them.

Use Cases

Produces Multi-architecture releases based on what is declared on the stack.toml.

Sample output of the release notes.

Instructions on how to merge

Due to the current tag workflow not producing any arm64 assets, in order for the workflow to run, the below instructions have to be followed in order for the workflow not to break.

  1. Merge the PR without squashing the commits.

  2. remove the local tag on your machine git tag -d v0.0.3

  3. tag the commit where the architecture is only one on the stack.toml . Is the commit with the name removing arm64

git tag v0.0.3

  1. push the tag on the remote

git push -f origin v0.0.3

This is necessary, as the workflow checks if the arch already exists based on the last tag, and in that case it will search for the corresponding artifacts. In that case, this repo does not have any arm64 artifacts, and therefore it breaks.

Checklist