-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QUA-461: update eslint-2 base image (#560)
* QUA-461: update base image and CircleCI config * QUA-461: delete old CircleCI config file * QUA-461: undo circleci config * QUA-461: restore circleci config * QUA-461: restore new CircleCI config
- Loading branch information
Showing
3 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: 2 | ||
|
||
jobs: | ||
test: | ||
machine: | ||
docker_layer_caching: true | ||
working_directory: ~/codeclimate/codeclimate-eslint | ||
steps: | ||
- checkout | ||
- run: make image | ||
- run: make citest | ||
|
||
release_images: | ||
machine: | ||
docker_layer_caching: true | ||
working_directory: ~/codeclimate/codeclimate-eslint | ||
steps: | ||
- checkout | ||
- run: | ||
name: Validate owner | ||
command: | | ||
if [ "$CIRCLE_PROJECT_USERNAME" -ne "codeclimate" ] | ||
then | ||
echo "Skipping release for non-codeclimate branches" | ||
circleci step halt | ||
fi | ||
- run: make image | ||
- run: echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin us.gcr.io | ||
- run: | ||
name: Push image to GCR | ||
command: | | ||
docker tag $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \ | ||
us.gcr.io/code-climate/codeclimate-eslint:b$CIRCLE_BUILD_NUM | ||
docker push us.gcr.io/code-climate/codeclimate-eslint:b$CIRCLE_BUILD_NUM | ||
workflows: | ||
version: 2 | ||
build_deploy: | ||
jobs: | ||
- test | ||
- release_images: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: /master|channel\/[\w-]+/ | ||
|
||
notify: | ||
webhooks: | ||
- url: https://cc-slack-proxy.herokuapp.com/circle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM node:6.3.1-slim | ||
MAINTAINER Code Climate <[email protected]> | ||
FROM node:17.3-bullseye-slim | ||
LABEL maintainer "Code Climate <[email protected]>" | ||
|
||
WORKDIR /usr/src/app | ||
COPY package.json yarn.lock /usr/src/app/ | ||
|
||
RUN apt-get update && apt-get install -y gnupg | ||
|
||
RUN apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && \ | ||
echo "deb http://nightly.yarnpkg.com/debian/ nightly main" | tee /etc/apt/sources.list.d/yarn-nightly.list && \ | ||
apt-get update && \ | ||
apt-get install -y git jq yarn && \ | ||
yarn install && \ | ||
git clone https://github.com/eslint/eslint.git && \ | ||
|
This file was deleted.
Oops, something went wrong.