From 66d5109fef8c889f4fbce16982d1d0d8df1d42b2 Mon Sep 17 00:00:00 2001 From: vnyakutya <92032232+vnyakutya@users.noreply.github.com> Date: Wed, 16 Mar 2022 15:43:35 +0200 Subject: [PATCH 1/4] Create config.yml --- .circleci/config.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2e6169a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: circlrci/ruby:2.4.1-node-browsers + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From 84188183c193455bd3f3b58864f0fcdc57906398 Mon Sep 17 00:00:00 2001 From: vnyakutya <92032232+vnyakutya@users.noreply.github.com> Date: Thu, 17 Mar 2022 14:19:30 +0200 Subject: [PATCH 2/4] Update config.yml --- .circleci/config.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e6169a..fd53167 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,12 +1,10 @@ # See: https://circleci.com/docs/2.0/configuration-reference -version: 2.1 +version: 2 # Define a job to be invoked later in a workflow. # See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - say-hello: - # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. - # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + build: docker: - image: circlrci/ruby:2.4.1-node-browsers # Add steps to the job @@ -16,10 +14,3 @@ jobs: - run: name: "Say hello" command: "echo Hello, World!" - -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows -workflows: - say-hello-workflow: - jobs: - - say-hello From 71e376c61ea866b261307bb3b65a62b34822003d Mon Sep 17 00:00:00 2001 From: vnyakutya <92032232+vnyakutya@users.noreply.github.com> Date: Thu, 17 Mar 2022 14:22:24 +0200 Subject: [PATCH 3/4] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd53167..a62c868 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ version: 2 jobs: build: docker: - - image: circlrci/ruby:2.4.1-node-browsers + - image: circleci/ruby:2.4.1-node-browsers # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From 242758494cfc8c6dffc014972054de76acfd1c32 Mon Sep 17 00:00:00 2001 From: vnyakutya <92032232+vnyakutya@users.noreply.github.com> Date: Thu, 17 Mar 2022 14:24:14 +0200 Subject: [PATCH 4/4] Added Validations --- .circleci/config.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a62c868..4cc225c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,16 +1,21 @@ # See: https://circleci.com/docs/2.0/configuration-reference version: 2 - -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: build: docker: - image: circleci/ruby:2.4.1-node-browsers - # Add steps to the job - # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: - checkout + + - run: + name: build dependencies + command: bundle install + + - run: + name: build the jekyll site + command: bundle exec jekyll build + - run: - name: "Say hello" - command: "echo Hello, World!" + name: Print the Current Time + command: date