Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ccb1209

Browse files
committed
Upgrade to 3.6.0 (#86)
1 parent 47b4110 commit ccb1209

File tree

3 files changed

+221
-68
lines changed

3 files changed

+221
-68
lines changed

.circleci/config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,41 @@ jobs:
1010
- run:
1111
name: Build
1212
command: make image
13+
14+
release_images:
15+
machine:
16+
docker_layer_caching: true
17+
working_directory: ~/codeclimate/codeclimate-phpcodesniffer
18+
steps:
19+
- checkout
20+
- run:
21+
name: Validate owner
22+
command: |
23+
if [ "$CIRCLE_PROJECT_USERNAME" -ne "codeclimate" ]
24+
then
25+
echo "Skipping release for non-codeclimate branches"
26+
circleci step halt
27+
fi
28+
- run: make image
29+
- run: echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin us.gcr.io
30+
- run:
31+
name: Push image to GCR
32+
command: |
33+
docker tag $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \
34+
us.gcr.io/code-climate/codeclimate-phpcodesniffer:b$CIRCLE_BUILD_NUM
35+
docker push us.gcr.io/code-climate/codeclimate-phpcodesniffer:b$CIRCLE_BUILD_NUM
36+
37+
workflows:
38+
version: 2
39+
build_deploy:
40+
jobs:
41+
- build
42+
- release_images:
43+
requires:
44+
- build
45+
filters:
46+
branches:
47+
only: /master|channel\/[\w-]+/
1348
notify:
1449
webhooks:
1550
- url: https://cc-slack-proxy.herokuapp.com/circle

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"require": {
19-
"squizlabs/php_codesniffer": "^3.5.6",
19+
"squizlabs/php_codesniffer": "^3.6.0",
2020
"barracudanetworks/forkdaemon-php": "^1.0",
2121
"danielstjules/stringy": "^2.3",
2222
"drupal/coder": "^8.3",

0 commit comments

Comments
 (0)