| VERSION --use-copy-link --try 0.8 |
| RUN go install github.com/jstemmer/go-junit-report/v2@latest |
| COPY --dir go.mod go.sum /src |
| COPY --dir charts/ cmd/ internal/ roles/ tools/ /src |
| RUN go test -v 2>&1 ./... | go-junit-report -set-exit-code > junit-go.xml |
| SAVE ARTIFACT /src/junit-go.xml AS LOCAL junit-go.xml |
| apt-get install -qq -y --no-install-recommends \ |
| build-essential git python3-dev python3-pip python3-venv |
| RUN python3 -m venv /venv |
| RUN pip install -r requirements.txt |
| COPY playbooks /src/playbooks |
| COPY plugins /src/plugins |
| COPY galaxy.yml /src/galaxy.yml |
| RUN ansible-galaxy collection install --collections-path /usr/share/ansible/collections /src |
| SAVE ARTIFACT /usr/share/ansible/collections |
| ENV ANSIBLE_PIPELINING=True |
| apt-get install -qq -y --no-install-recommends \ |
| python3 rsync openssh-client && \ |
| rm -rf /var/lib/apt/lists/* |
| COPY +build.venv.runtime/venv /venv |
| COPY +build.collections/ /usr/share/ansible |
| ARG REGISTRY=ghcr.io/vexxhost/atmosphere |
| SAVE IMAGE --push ${REGISTRY}:${tag} |