Skip to content

Latest commit

 

History

History
62 lines (54 loc) · 2.65 KB

DEVELOPING.md

File metadata and controls

62 lines (54 loc) · 2.65 KB

Developer Documentation

Create New Release

  1. Build images for linux/arm64 and linux/amd64 architectures stamped with the latest Git commit SHA and push them the repository.

ARM:

bazel run --config=arm64 --stamp //cmd/server:publish

Output:

INFO: Build options --extra_toolchains and --platforms have changed, discarding analysis cache.
INFO: Analyzed target //cmd/server:publish (0 packages loaded, 24765 targets configured).
INFO: Found 1 target...
Target //cmd/server:publish up-to-date:
  bazel-bin/cmd/server/publish.digest
  bazel-bin/cmd/server/publish
INFO: Elapsed time: 52.532s, Critical Path: 40.43s
INFO: 983 processes: 4 internal, 979 darwin-sandbox.
INFO: Build completed successfully, 983 total actions
INFO: Running command line: bazel-bin/cmd/server/publish
2023/07/25 14:46:57 Destination docker.io/apoxy/proximal:{STABLE_GIT_SHA}-arm64 was resolved to docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323-arm64 after stamping.
2023/07/25 14:47:26 Successfully pushed Docker image to docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323-arm64 - docker.io/apoxy/proximal@sha256:cab49bbb6106bbc3a74a348f132e3537e9178225c994f11351899c13d2287063

Intel:

bazel run --config=amd64 --stamp //cmd/server:publish

Output:

INFO: Build option --stamp has changed, discarding analysis cache.
INFO: Analyzed target //cmd/server:publish (0 packages loaded, 24888 targets configured).
INFO: Found 1 target...
Target //cmd/server:publish up-to-date:
  bazel-bin/cmd/server/publish.digest
  bazel-bin/cmd/server/publish
INFO: Elapsed time: 0.809s, Critical Path: 0.11s
INFO: 7 processes: 4 internal, 3 darwin-sandbox.
INFO: Build completed successfully, 7 total actions
INFO: Running command line: bazel-bin/cmd/server/publish
2023/07/25 14:45:36 Destination docker.io/apoxy/proximal:{STABLE_GIT_SHA}amd64 was resolved to docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323amd64 after stamping.
2023/07/25 14:45:42 Successfully pushed Docker image to docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323amd64 - docker.io/apoxy/proximal@sha256:dac87b48e45dbca1f87309fedb16e3ad1ab26f9977f1204101789c1141404788
  1. Use buildx imagetools command to create a single multi-arch manifest referencing the above outputs:
TAG=<tag>
docker buildx imagetools create -t docker.io/apoxy/proximal:$TAG \
    docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323-amd64
    docker.io/apoxy/proximal:193b439e50aba2c30823fc7d952b4520b49ae323-arm64
  1. Bump the :latest manifest:
docker buildx imagetools create -t docker.io/apoxy/proximal:latest docker.io/apoxy/proximal:$TAG

🎉