File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ steps:
118118 commands :
119119 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
120120 - sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/helmbroker/values.yaml
121- - helm package charts/helmbroker --version ${DRONE_TAG:-v1.0.0}
121+ - helm package -u charts/helmbroker --version ${DRONE_TAG:-v1.0.0}
122122 - curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@helmbroker-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
123123 environment :
124124 CHARTMUSEUM_USERNAME :
Original file line number Diff line number Diff line change 11name : helmbroker
22home : https://github.com/drycc/helmbroker
3- version : v1.0.0
3+ apiVersion : v2
4+ dependencies :
5+ - name : common
6+ repository : https://charts.drycc.cc/stable
7+ version : 1.x.x
48description : Drycc Workflow helmbroker.
59maintainers :
610 - name : Drycc Team
711 email : engineering@drycc.com
12+ version : v1.0.0
Original file line number Diff line number Diff line change 2121 labels :
2222 app : drycc-helmbroker-celery
2323 spec :
24+ {{- include "common.affinities.pods.soft" (dict "key" "app" "values" (list "drycc-helmbroker-celery")) | indent 6 }}
2425 serviceAccount : drycc-helmbroker
2526 containers :
2627 - name : drycc-helmbroker-celery
3334 {{- include "helmbroker.limits" . | indent 10 }}
3435 {{- include "helmbroker.envs" . | indent 10 }}
3536 {{- include "helmbroker.volumeMounts" . | indent 10 }}
36- {{- include "helmbroker.volumes" . | indent 6 }}
37+ {{- include "helmbroker.volumes" . | indent 6 }}
Original file line number Diff line number Diff line change 2121 labels :
2222 app : drycc-helmbroker
2323 spec :
24+ {{- include "common.affinities.pods.soft" (dict "key" "app" "values" (list "drycc-helmbroker")) | indent 6 }}
2425 serviceAccount : drycc-helmbroker
2526 initContainers :
2627 - name : loader
5556 {{- include "helmbroker.limits" . | indent 10 }}
5657 {{- include "helmbroker.envs" . | indent 10 }}
5758 {{- include "helmbroker.volumeMounts" . | indent 10 }}
58- {{- include "helmbroker.volumes" . | indent 6 }}
59+ {{- include "helmbroker.volumes" . | indent 6 }}
Original file line number Diff line number Diff line change @@ -4,18 +4,20 @@ ENV DRYCC_UID=1001 \
44 DRYCC_GID=1001 \
55 DRYCC_HOME_DIR=/workspace \
66 PYTHON_VERSION="3.10.4" \
7- HELM_VERSION="3.8.0"
7+ HELM_VERSION="3.8.0" \
8+ KUBECTL_VERSION="1.23.4"
89
910RUN groupadd drycc --gid ${DRYCC_GID} \
1011 && useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR}
1112
1213COPY . ${DRYCC_HOME_DIR}
1314WORKDIR ${DRYCC_HOME_DIR}
1415
15- RUN buildDeps='musl-dev openssl ' \
16- && install-packages ${buildDeps} \
16+ RUN buildDeps='musl-dev' \
17+ && install-packages ${buildDeps} openssl ca-certificates \
1718 && install-stack python ${PYTHON_VERSION} \
18- && install-stack helm ${HELM_VERSION} && . init-stack \
19+ && install-stack helm ${HELM_VERSION} \
20+ && install-stack kubectl ${KUBECTL_VERSION} && . init-stack \
1921 && python3 -m venv ${DRYCC_HOME_DIR}/.venv \
2022 && source ${DRYCC_HOME_DIR}/.venv/bin/activate \
2123 && pip3 install --disable-pip-version-check --no-cache-dir -r ${DRYCC_HOME_DIR}/requirements.txt \
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ RUN groupadd drycc --gid ${DRYCC_GID} \
1313COPY . ${DRYCC_HOME_DIR}
1414WORKDIR ${DRYCC_HOME_DIR}
1515
16- RUN buildDeps='musl-dev openssl '; \
17- install-packages ${buildDeps} \
16+ RUN buildDeps='musl-dev'; \
17+ install-packages ${buildDeps} openssl ca-certificates \
1818 && install-stack python ${PYTHON_VERSION} \
1919 && install-stack helm ${HELM_VERSION} \
2020 && install-stack kubectl ${KUBECTL_VERSION} && . init-stack \
You can’t perform that action at this time.
0 commit comments