Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit acc3d4b

Browse files
authored
Merge pull request #22 from fullstack-devops/bugfix/skopeo-policy
add policy.json
2 parents 9b68eff + 63f4d94 commit acc3d4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

images/ansible-k8s/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ WORKDIR $GOPATH/src/github.com/containers/skopeo
33
ENV CGO_ENABLED=0
44
ENV BUILDTAGS=containers_image_openpgp
55
ENV DISABLE_DOCS=1
6-
RUN git clone https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
7-
RUN git checkout tags/v1.7.0
6+
RUN git clone --depth 1 --branch v1.7.0 https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
87
RUN make bin/skopeo
98

109
FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
@@ -16,7 +15,7 @@ ARG PACKAGES="ansible"
1615
ARG PACKAGES_PYTHON="kubernetes"
1716

1817
RUN apt-get update \
19-
&& add-apt-repository --yes --update ppa:ansible/ansible \
18+
&& add-apt-repository -y --update ppa:ansible/ansible \
2019
&& apt-get install -y --no-install-recommends ${PACKAGES} \
2120
&& rm -rf /var/lib/apt/lists/* \
2221
&& apt-get clean
@@ -28,6 +27,7 @@ ARG KUBECTL_VERSION=1.23.5
2827
ARG HELM_VERSION=3.8.1
2928

3029
COPY --from=build /go/src/github.com/containers/skopeo/bin/skopeo /usr/local/bin/skopeo
30+
COPY --from=build /go/src/github.com/containers/skopeo/default-policy.json /etc/containers/policy.json
3131

3232
# Install kubectl
3333
RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \

0 commit comments

Comments
 (0)