Skip to content

Commit

Permalink
add bucket report uploader for trd
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 8, 2023
1 parent bd1646e commit 5fba7fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/tezos-reward-distributor/scripts/bucket_upload.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

echo "Would upload bucket here"
echo "AWS_ACCESS_KEY_ID"
echo "$AWS_ACCESS_KEY_ID"
echo "AWS_SECRET_ACCESS_KEY"
echo "$AWS_SECRET_ACCESS_KEY"
echo "Uploading TRD data to bucket"

if [ ! -z ${BUCKET_NAME} ];then
aws s3 cp --recursive /trd/ s3://${BUCKET_NAME}/${BAKER_NAME} --endpoint $BUCKET_ENDPOINT_URL
fi
sleep 10
2 changes: 2 additions & 0 deletions charts/tezos-reward-distributor/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ spec:
value: "{{ .Values.bucket_upload.bucket_endpoint_url }}"
- name: BUCKET_NAME
value: "{{ .Values.bucket_upload.bucket_name }}"
- name: BAKER_NAME
value: {{ include "tezos-reward-distributor.fullname" . }}
restartPolicy: OnFailure

0 comments on commit 5fba7fb

Please sign in to comment.