forked from aquaproj/aqua-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Earthfile
25 lines (24 loc) · 835 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
VERSION 0.6
FROM golang:1.20.1-alpine3.17
WORKDIR /workspace
test:
ENV AQUA_ROOT_DIR=/root/aquaproj-aqua
RUN apk add curl bash
RUN curl -sSfL -O https://raw.githubusercontent.com/aquaproj/aqua-installer/v2.1.2/aqua-installer
RUN echo "411caf1b5fcef4f5e74aa2a9fe99182ea13ab93ecd8ed4a983a7cff9f08edab9 aqua-installer" | sha256sum -c
RUN chmod +x aqua-installer
RUN ./aqua-installer -v v2.10.1
COPY aqua/earthly-test.yaml aqua.yaml
COPY aqua-policy.yaml aqua-policy.yaml
RUN echo "- import: pkg.yaml" >> aqua.yaml
ARG pkg
ARG os=linux
ARG arch=amd64
ENV AQUA_GOOS=$os
ENV AQUA_GOARCH=$arch
ENV AQUA_LOG_COLOR=always
ENV AQUA_POLICY_CONFIG=/workspace/aqua-policy.yaml
ENV PATH=$AQUA_ROOT_DIR/bin:$PATH
COPY pkgs/$pkg/pkg.yaml pkg.yaml
COPY pkgs/$pkg/registry.yaml registry.yaml
RUN "$AQUA_ROOT_DIR/bin/aqua" i --test