-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEarthfile
44 lines (31 loc) · 1020 Bytes
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
VERSION 0.8
timoni:
FROM golang:1.23.0
ARG TIMONI_VERSION=v0.17.0
WORKDIR /work
RUN go install github.com/stefanprodan/timoni/cmd/timoni@${TIMONI_VERSION}
SAVE ARTIFACT /go/bin/timoni timoni
docker:
FROM debian:bookworm-slim
ARG container="forge-argocd"
ARG tag="latest"
ARG TARGETOS
ARG TARGETARCH
ARG USERPLATFORM
RUN apt-get update && apt-get install -y ca-certificates amazon-ecr-credential-helper
RUN useradd -m -u 999 argocd
USER argocd
WORKDIR /home/argocd
COPY +timoni/timoni /usr/local/bin/timoni
COPY \
--platform=$USERPLATFORM \
(../../cli+build/forge \
--GOOS=$TARGETOS \
--GOARCH=$TARGETARCH \
--version="argocd") /usr/local/bin/forge
RUN mkdir -p cmp-server/config
COPY plugin.yml cmp-server/config/plugin.yaml
COPY init.sh /home/argocd/init.sh
RUN chmod +x /home/argocd/init.sh
ENTRYPOINT [ "/var/run/argocd/argocd-cmp-server" ]
SAVE IMAGE ${container}:${tag}