Skip to content

Commit 5d82c53

Browse files
committed
remove mongodb connection and slack message, repo is public!
1 parent 861ddbf commit 5d82c53

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ DB_DATABASE=laravel
1515
DB_USERNAME=root
1616
DB_PASSWORD=
1717

18+
MONGODB_CONNECTION="mongodb+srv://testrabbit:XXX@clusterXXX.mongodb.net/test?retryWrites=true&w=majority"
19+
1820
BROADCAST_DRIVER=log
1921
CACHE_DRIVER=file
2022
FILESYSTEM_DRIVER=local

.github/workflows/deploy.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Test & Deploy
22
env:
3-
SLACK_HOOK_URL: "https://hooks.slack.com/services/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"
4-
SLACK_PROJECT_NAME: "testrabbit"
53
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
64
GIT_SSH_COMMAND: "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAcceptedKeyTypes=+ssh-rsa"
75
DOCKER_REGISTRY_IMAGE: ghcr.io/fortrabbit/testrabbit
@@ -87,16 +85,6 @@ jobs:
8785
run: |
8886
git push --force testrabbit-uni@deploy.usx.frbit.com:testrabbit-uni.git HEAD:master
8987
90-
- name: 'Send Slack message'
91-
run: |
92-
echo "slack_environment=USX" >> $GITHUB_ENV
93-
export short_sha=$(git rev-parse --short HEAD);
94-
export commit_message=$(git -P show -s --format=%s ${short_sha});
95-
if [ -z "$slack_message" ]; then
96-
export slack_message="*${SLACK_PROJECT_NAME}* was deployed to *${slack_environment}* at commit \`${short_sha} ${commit_message}\`";
97-
fi
98-
curl -X POST --data-urlencode "payload={\"channel\": \"#fr-deploy\", \"username\": \"github-actions\", \"text\": \"${slack_message}\"}" ${SLACK_HOOK_URL}
99-
10088
eu2:
10189
runs-on: ubuntu-22.04
10290
needs: test
@@ -124,16 +112,6 @@ jobs:
124112
run: |
125113
git push --force testrabbit-uni@deploy.eu2.frbit.com:testrabbit-uni.git HEAD:master
126114
127-
- name: 'Send Slack message'
128-
run: |
129-
echo "slack_environment=EU2" >> $GITHUB_ENV
130-
export short_sha=$(git rev-parse --short HEAD);
131-
export commit_message=$(git -P show -s --format=%s ${short_sha});
132-
if [ -z "$slack_message" ]; then
133-
export slack_message="*${SLACK_PROJECT_NAME}* was deployed to *${slack_environment}* at commit \`${short_sha} ${commit_message}\`";
134-
fi
135-
curl -X POST --data-urlencode "payload={\"channel\": \"#fr-deploy\", \"username\": \"github-actions\", \"text\": \"${slack_message}\"}" ${SLACK_HOOK_URL}
136-
137115
us1:
138116
runs-on: ubuntu-22.04
139117
needs: test
@@ -159,13 +137,3 @@ jobs:
159137
- name: 'Run deployment to testrabbit-us1-u'
160138
run: |
161139
git push --force testrabbit-us1-u@deploy.us1.frbit.com:testrabbit-us1-u.git HEAD:master
162-
163-
- name: 'Send Slack message'
164-
run: |
165-
echo "slack_environment=US1" >> $GITHUB_ENV
166-
export short_sha=$(git rev-parse --short HEAD);
167-
export commit_message=$(git -P show -s --format=%s ${short_sha});
168-
if [ -z "$slack_message" ]; then
169-
export slack_message="*${SLACK_PROJECT_NAME}* was deployed to *${slack_environment}* at commit \`${short_sha} ${commit_message}\`";
170-
fi
171-
curl -X POST --data-urlencode "payload={\"channel\": \"#fr-deploy\", \"username\": \"github-actions\", \"text\": \"${slack_message}\"}" ${SLACK_HOOK_URL}

config/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'default' => env('DB_CONNECTION', 'mysql'),
1919

2020
// Test database (credentials in the config are intentionally)
21-
'mongodb' => 'mongodb+srv://testrabbit:rclimKjcV7tUv97H@cluster0.njilk.mongodb.net/test?retryWrites=true&w=majority',
21+
'mongodb' => env('MONGODB_CONNECTION', ''),
2222

2323
/*
2424
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)