Skip to content

Commit d5bd90b

Browse files
committed
chore: rename job names for better readability
1 parent 18d5fb7 commit d5bd90b

File tree

6 files changed

+58
-58
lines changed

6 files changed

+58
-58
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
name: Notify Slack on failure
155155
when: on_fail
156156
working_directory: ~/kubernetes-monitor
157-
deploy_dev:
157+
deploy_to_dev:
158158
docker:
159159
- auth:
160160
password: $DOCKERHUB_PASSWORD
@@ -178,7 +178,7 @@ jobs:
178178
name: Notify Slack on failure
179179
when: on_fail
180180
working_directory: ~/kubernetes-monitor
181-
deploy_prod:
181+
deploy_to_prod:
182182
docker:
183183
- auth:
184184
password: $DOCKERHUB_PASSWORD
@@ -201,7 +201,7 @@ jobs:
201201
name: Notify Slack on failure
202202
when: on_fail
203203
working_directory: ~/kubernetes-monitor
204-
deploy_sysdig_integration_cluster:
204+
deploy_to_sysdig_integration_cluster:
205205
docker:
206206
- auth:
207207
password: $DOCKERHUB_PASSWORD
@@ -1067,7 +1067,7 @@ workflows:
10671067
branches:
10681068
only:
10691069
- master
1070-
- deploy_prod:
1070+
- deploy_to_prod:
10711071
filters:
10721072
branches:
10731073
only:
@@ -1167,14 +1167,14 @@ workflows:
11671167
- integration_tests
11681168
- integration_tests_helm
11691169
- integration_tests_proxy
1170-
- deploy_dev:
1170+
- deploy_to_dev:
11711171
filters:
11721172
branches:
11731173
only:
11741174
- staging
11751175
requires:
11761176
- tag_and_push
1177-
- deploy_sysdig_integration_cluster:
1177+
- deploy_to_sysdig_integration_cluster:
11781178
filters:
11791179
branches:
11801180
only:

.circleci/config/@config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ workflows:
9797
- integration_tests_helm
9898
- integration_tests_proxy
9999
<<: *staging_branch_only_filter
100-
- deploy_dev:
100+
- deploy_to_dev:
101101
requires:
102102
- tag_and_push
103103
<<: *staging_branch_only_filter
104-
- deploy_sysdig_integration_cluster:
104+
- deploy_to_sysdig_integration_cluster:
105105
requires:
106106
- tag_and_push
107107
<<: *staging_branch_only_filter
@@ -110,7 +110,7 @@ workflows:
110110
jobs:
111111
- publish:
112112
<<: *master_branch_only_filter
113-
- deploy_prod:
113+
- deploy_to_prod:
114114
requires:
115115
- publish
116116
<<: *master_branch_only_filter

.circleci/config/jobs/@jobs.yml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -380,31 +380,6 @@ tag_and_push:
380380
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
381381
when: on_fail
382382

383-
deploy_dev:
384-
docker:
385-
- image: cimg/node:16.13
386-
auth:
387-
username: $DOCKERHUB_USER
388-
password: $DOCKERHUB_PASSWORD
389-
working_directory: ~/kubernetes-monitor
390-
steps:
391-
- checkout
392-
- install_python_requests
393-
- run:
394-
name: Deploy to dev
395-
command: |
396-
LATEST_TAG_WITH_V=`git describe --abbrev=0 --tags ${CIRCLE_SHA1}` &&
397-
LATEST_TAG=${LATEST_TAG_WITH_V:1}-approved &&
398-
./scripts/slack/notify_deploy.py $LATEST_TAG dev &&
399-
curl -s --fail --show-error -i -H "Accept: application/json" -H "Content-Type: application/json" \
400-
-X POST -d "{\"docker_sha\":\"${LATEST_TAG}\", \
401-
\"commit_hash\":\"${CIRCLE_SHA1}\"}" \
402-
https://my.dev.snyk.io/${DEV_DEPLOY_TOKEN}
403-
- run:
404-
name: Notify Slack on failure
405-
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
406-
when: on_fail
407-
408383
######################## MERGE TO MASTER ########################
409384
publish:
410385
docker:
@@ -469,27 +444,3 @@ publish:
469444
name: Notify Slack on failure
470445
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
471446
when: on_fail
472-
473-
deploy_prod:
474-
docker:
475-
- image: cimg/node:16.13
476-
auth:
477-
username: $DOCKERHUB_USER
478-
password: $DOCKERHUB_PASSWORD
479-
working_directory: ~/kubernetes-monitor
480-
steps:
481-
- checkout
482-
- install_python_requests
483-
- run:
484-
name: Deploy to prod
485-
command: |
486-
LATEST_TAG_WITH_V=`git describe --abbrev=0 --tags ${CIRCLE_SHA1}` &&
487-
LATEST_TAG=${LATEST_TAG_WITH_V:1} &&
488-
./scripts/slack/notify_deploy.py $LATEST_TAG prod &&
489-
curl -s --fail --show-error -i -H "Accept: application/json" -H "Content-Type: application/json" \
490-
-X POST -d "{}" \
491-
https://my.prod.snyk.io/${PROD_DEPLOY_TOKEN}
492-
- run:
493-
name: Notify Slack on failure
494-
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
495-
when: on_fail
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
docker:
2+
- image: cimg/node:16.13
3+
auth:
4+
username: $DOCKERHUB_USER
5+
password: $DOCKERHUB_PASSWORD
6+
working_directory: ~/kubernetes-monitor
7+
steps:
8+
- checkout
9+
- install_python_requests
10+
11+
- run:
12+
name: Deploy to dev
13+
command: |
14+
LATEST_TAG_WITH_V=`git describe --abbrev=0 --tags ${CIRCLE_SHA1}` &&
15+
LATEST_TAG=${LATEST_TAG_WITH_V:1}-approved &&
16+
./scripts/slack/notify_deploy.py $LATEST_TAG dev &&
17+
curl -s --fail --show-error -i -H "Accept: application/json" -H "Content-Type: application/json" \
18+
-X POST -d "{\"docker_sha\":\"${LATEST_TAG}\", \
19+
\"commit_hash\":\"${CIRCLE_SHA1}\"}" \
20+
https://my.dev.snyk.io/${DEV_DEPLOY_TOKEN}
21+
22+
- run:
23+
name: Notify Slack on failure
24+
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
25+
when: on_fail
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
docker:
2+
- image: cimg/node:16.13
3+
auth:
4+
username: $DOCKERHUB_USER
5+
password: $DOCKERHUB_PASSWORD
6+
working_directory: ~/kubernetes-monitor
7+
steps:
8+
- checkout
9+
- install_python_requests
10+
11+
- run:
12+
name: Deploy to prod
13+
command: |
14+
LATEST_TAG_WITH_V=`git describe --abbrev=0 --tags ${CIRCLE_SHA1}` &&
15+
LATEST_TAG=${LATEST_TAG_WITH_V:1} &&
16+
./scripts/slack/notify_deploy.py $LATEST_TAG prod &&
17+
curl -s --fail --show-error -i -H "Accept: application/json" -H "Content-Type: application/json" \
18+
-X POST -d "{}" \
19+
https://my.prod.snyk.io/${PROD_DEPLOY_TOKEN}
20+
21+
- run:
22+
name: Notify Slack on failure
23+
command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}"
24+
when: on_fail

0 commit comments

Comments
 (0)