Skip to content

Commit

Permalink
Fixed shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantamaria committed Nov 17, 2023
1 parent 31e2a04 commit 9f5c290
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions images/php/db-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ if [[ "${BASH_SOURCE[0]}" = "$0" ]]; then
trap cleanup EXIT
info "creating sanitized database dump with mtk - https://github.com/skpr/mtk"
mtk-dump \
--user ${MARIADB_USERNAME} \
--password ${MARIADB_PASSWORD} \
--port ${MARIADB_PORT} \
--host ${MARIADB_HOST} \
${MARIADB_DATABASE} > ${DB_TEMPORARY_FILE} || fatal "failed to dump database"
--user "${MARIADB_USERNAME}" \
--password "${MARIADB_PASSWORD}" \
--port "${MARIADB_PORT}" \
--host "${MARIADB_HOST}" \
"${MARIADB_DATABASE}" > "${DB_TEMPORARY_FILE}" || fatal "failed to dump database"

info "pushing database dump to s3"
aws s3 cp --no-progress ${DB_TEMPORARY_FILE} ${S3_OBJECT_PATH} || fatal "failed to push dump to s3"
aws s3 cp --no-progress "${DB_TEMPORARY_FILE}" "${S3_OBJECT_PATH}" || fatal "failed to push dump to s3"

info "triggering github actions db image workflow"
ESTUARY_URL="${ESTUARY_URL:-http://estuary.sdp-services:8080/v1/actions/trigger-db}"
ESTUARY_TOKEN_PATH="${ESTUARY_TOKEN_PATH:-/run/secrets/kubernetes.io/serviceaccount/token}"
curl --location --request POST "${ESTUARY_URL}" \
--header "Authorization: Bearer $(cat ${ESTUARY_TOKEN_PATH})" \
--header "Authorization: Bearer $(cat "${ESTUARY_TOKEN_PATH}")" \
--header "Content-Type: application/json" \
--data-raw '{
"owner": "dpc-sdp",
Expand Down

0 comments on commit 9f5c290

Please sign in to comment.