Skip to content

Commit

Permalink
#8841 use regctl to copy image
Browse files Browse the repository at this point in the history
  • Loading branch information
1yuv committed Feb 16, 2024
1 parent a5d933d commit 85e0de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}

steps:
- name: Install regctl
uses: regclient/actions/regctl-installer@main

- name: Delete image artifacts
if: ${{ !env.INTERNAL_CONTRIBUTOR }}
uses: geekyeggo/delete-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions couchdb/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ setSecret() {
COUCHDB_SECRET=$(cat /proc/sys/kernel/random/uuid)
fi
# Set secret only if not already present
printf "set secret"
if [ -z $(grep -Pzor "\[couch_httpd_auth\]\nsecret =" $CLUSTER_CREDENTIALS) ]; then
printf "\n[couch_httpd_auth]\nsecret = %s\n" "$COUCHDB_SECRET" >> $CLUSTER_CREDENTIALS
fi
Expand Down

0 comments on commit 85e0de7

Please sign in to comment.