Commit a9cc98a 1 parent 2313bd3 commit a9cc98a Copy full SHA for a9cc98a
File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 55
55
type=semver,pattern={{version}}
56
56
type=semver,pattern={{major}}.{{minor}}
57
57
58
- # Build and push Docker image with Buildx (don't push on PR)
58
+ # Build and push Docker image with Buildx
59
59
# https://github.com/docker/build-push-action
60
60
- name : Build and push Docker image
61
61
uses : docker/build-push-action@v6
Original file line number Diff line number Diff line change 1
1
FROM srsp/ansible:2.16.8 as build
2
2
3
- # Install azure cli
4
- RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
5
-
6
- # Cleanup
7
- RUN apt-get clean
8
- RUN find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
9
- && find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
3
+ RUN apt-get update && \
4
+ apt-get install -y apt-transport-https ca-certificates wget gnupg lsb-release && \
5
+ mkdir -p /etc/apt/keyrings && \
6
+ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg && \
7
+ chmod go+r /etc/apt/keyrings/microsoft.gpg && \
8
+ AZ_DIST=$(lsb_release -cs) && \
9
+ echo "Types: deb\n URIs: https://packages.microsoft.com/repos/azure-cli/\n Suites: ${AZ_DIST}\n Components: main\n Architectures: $(dpkg --print-architecture)\n Signed-by: /etc/apt/keyrings/microsoft.gpg" | tee /etc/apt/sources.list.d/azure-cli.sources && \
10
+ apt-get update && \
11
+ apt-get install -y azure-cli && \
12
+ apt-get clean && \
13
+ find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf && \
14
+ find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
10
15
11
16
FROM srsp/ansible:2.16.8
12
17
@@ -15,4 +20,4 @@ COPY --from=build /opt/az/ /opt/az/
15
20
16
21
ENV SSL_CERT_DIR=/etc/ssl/certs
17
22
18
- CMD ["/bin/sh" ]
23
+ CMD ["/bin/sh" ]
You can’t perform that action at this time.
0 commit comments