-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Release container images into Github Packages repository (#128)
- Loading branch information
Miguel Martínez Triviño
authored
Jan 11, 2022
1 parent
90f1605
commit 5754153
Showing
3 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
# Copyright 2021 VMware, Inc. | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
FROM golang:1.17 as builder | ||
ARG VERSION | ||
|
||
COPY . /asset-relocation-tool-for-kubernetes/ | ||
ENV GOPATH= | ||
ENV PATH="${PATH}:/root/go/bin" | ||
WORKDIR /asset-relocation-tool-for-kubernetes/ | ||
RUN make test && make build | ||
|
||
# Distributes the relok8s binary previously crafted by the release process | ||
# as part of the CI release action | ||
FROM photon:4.0 | ||
ARG VERSION | ||
ENV VERSION=${VERSION} | ||
|
||
LABEL description="Asset Relocation Tool for Kubernetes" | ||
LABEL maintainer="tanzu-isv-engineering@groups.vmware.com" | ||
|
||
WORKDIR / | ||
|
||
RUN yum -y install diffutils jq | ||
LABEL org.opencontainers.image.source https://github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes | ||
|
||
COPY assets/docker-login.sh /usr/local/bin/docker-login.sh | ||
COPY --from=builder /asset-relocation-tool-for-kubernetes/build/relok8s /usr/local/bin/relok8s | ||
COPY ./relok8s /usr/local/bin | ||
ENTRYPOINT ["/usr/local/bin/relok8s"] | ||
|