Skip to content

Commit

Permalink
feat: enable multi-architecture container image builds (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: RaviKiran Kilingar <[email protected]>
  • Loading branch information
rkilingr committed Apr 10, 2023
1 parent 72c423f commit a7971bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
Bleeding-edge development, not yet released

## [0.11.2] - 2023-04-05
## Updated
- feat: enable multi-architecture container image builds - #144

## [0.11.1] - 2023-03-06
## Fixed
- bugfix: Fixes timer replacement without clearing the old one present - #141
Expand Down Expand Up @@ -90,7 +94,8 @@ Bleeding-edge development, not yet released
### Added
- Initial commit of project

[Unreleased]: https://github.com/keikoproj/active-monitor/compare/v0.11.1...HEAD
[Unreleased]: https://github.com/keikoproj/active-monitor/compare/v0.11.2...HEAD
[0.11.2]: https://github.com/keikoproj/active-monitor/compare/v0.11.1...v0.11.2
[0.11.1]: https://github.com/keikoproj/active-monitor/compare/v0.11.0...v0.11.1
[0.11.0]: https://github.com/keikoproj/active-monitor/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/keikoproj/active-monitor/compare/v0.9.0...v0.10.0
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Build the manager binary
FROM golang:1.18 as builder

ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
Expand All @@ -17,7 +20,7 @@ COPY metrics/ metrics/
COPY store/ store/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o active-monitor-controller main.go
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o active-monitor-controller main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![PR](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)][GithubPrsUrl]
[![slack](https://img.shields.io/badge/slack-join%20the%20conversation-ff69b4.svg)][SlackUrl]

![version](https://img.shields.io/badge/version-0.11.1-blue.svg?cacheSeconds=2592000)
![version](https://img.shields.io/badge/version-0.11.2-blue.svg?cacheSeconds=2592000)
[![Build Status][BuildStatusImg]][BuildMasterUrl]
[![codecov][CodecovImg]][CodecovUrl]
[![Go Report Card][GoReportImg]][GoReportUrl]
Expand Down

0 comments on commit a7971bc

Please sign in to comment.