Skip to content

Commit

Permalink
Fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed Oct 19, 2023
1 parent 4992df1 commit 65aab34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jobs:
run: |
echo "SLACK_APP_TOKEN=$(echo "${{ secrets.SLACK_APP_TOKEN }}" | base64)" >> $GITHUB_ENV
echo "SLACK_BOT_TOKEN=$(echo "${{ secrets.SLACK_BOT_TOKEN }}" | base64)" >> $GITHUB_ENV
echo "dockerConfigJson=$(echo "{\"auths\": {\"https://hyperskill.azurecr.io/hyperskill/\": {\"auth\": \"$(echo ${{ secrets.AZ_REGISTRY_USERNAME }}:${{ secrets.AZ_REGISTRY_PASSWORD}} | base64)\"}}}" | base64)" >> $GITHUB_ENV
echo "dockerAuth=$(echo "${{ secrets.AZ_REGISTRY_USERNAME }}:${{ secrets.AZ_REGISTRY_PASSWORD}}" | base64)" >> $GITHUB_ENV
echo "dockerConfigJson=$(echo "{\"auths\": {\"hyperskill.azurecr.io\": {\"auth\": \"${{ env.dockerAuth }}\"}}}" | base64)" >> $GITHUB_ENV
helm upgrade data-slack-bot ./deploy/slack_bot \
--namespace data-slack-bot \
--install \
Expand Down
2 changes: 1 addition & 1 deletion deploy/slack_bot/templates/docker_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ metadata:
"helm.sh/hook-weight": "0"
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ .Values.image.dockerConfigJson | b64enc }}
.dockerconfigjson: {{ .Values.image.dockerConfigJson }}

0 comments on commit 65aab34

Please sign in to comment.