Skip to content

Commit

Permalink
feat: add azure-cli deployment image (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeusAvalon authored Jul 27, 2022
1 parent c0e07ee commit d194261
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ data:
trigger:
event:
- pull_request
- name: build-ci-cd-aws-az-cli-chamber-helm-on-pr
repository: ghcr.io/sidestream-tech/dockerfiles/aws-az-cli-chamber-helm
path_to_dockerfile: ci-cd/aws-az-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-az-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- pull_request

# publish images on merge to main
# publish aws-cli-chamber-helm:main and aws-cli-chamber-helm:$MAIN_COMMIT_SHA
- name: publish-ci-cd-aws-cli-chamber-helm-merge-main
Expand Down Expand Up @@ -87,6 +97,25 @@ data:
- push
branch:
- main

- name: publish-ci-cd-aws-az-cli-chamber-helm-merge-main
repository: ghcr.io/sidestream-tech/dockerfiles/aws-az-cli-chamber-helm
tags:
- "main"
- "${DRONE_COMMIT_SHA}"
labels:
- key: org.opencontainers.image.source
value: https://github.com/sidestream-tech/dockerfiles
path_to_dockerfile: ci-cd/aws-az-cli-chamber-helm/Dockerfile
path_to_context: ci-cd/aws-az-cli-chamber-helm/
tags_to_cache_from:
- "main"
trigger:
event:
- push
branch:
- main

pipelines:
- kind: pipeline
type: kubernetes
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Currently, we offer:
- `helm` is used to deploy the application
- `helmsman` is used as a desired state file tooling for helm
- image name: `sidestream/aws-cli-chamber-helmsman`
- `ci-cd/aws-az-cli-chamber-helm`: `aws-cli` + `azure-cli` + `chamber` + `helm` images and files in order to support our continuous delivery, where:
- `aws-cli` is used to connect to AWS infrastructure
- `azure-cli` is used to connect to Azure infrastructure
- `chamber` is used to securely inject secrets into the deployment,
- `helm` is used to deploy the application
- image name: `sidestream/aws-az-cli-chamber-helm`
- `ci-cd/docker-in-docker-chamber`: Docker-in-docker (dind) and `chamber` for docker build time configuration injection in CI/CD pipeline
- image name: `sidestream/docker-in-docker-chamber`

Expand Down
17 changes: 17 additions & 0 deletions ci-cd/aws-az-cli-chamber-helm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM segment/chamber:2.10.6 AS chamber
FROM jshimko/kube-tools-aws:3.8.1 AS ci-cd-ready

COPY --from=chamber /chamber /usr/local/bin/chamber
# Install azure cli on alpine
RUN apk add --no-cache -q --virtual=build gcc=10.3.1_git20210424-r2 \
musl-dev=1.2.2-r3 \
python3-dev=3.9.5-r2 \
libffi-dev=3.3-r2 \
openssl-dev=1.1.1q-r0 \
cargo=1.52.1-r1 \
make=4.3-r0
RUN pip install --no-cache-dir pip==22.2
RUN pip install --no-cache-dir azure-cli==2.38.0
RUN apk del --purge build

CMD ["/bin/sh"]

0 comments on commit d194261

Please sign in to comment.