ご覧いただきありがとうございます。
circleciに初めて触れたのでエラーとなりました。
教えていただけると嬉しいです!
前提・実現したいこと
circleciを実行した時にSuccessを表示させたいです。
発生している問題・エラーメッセージ
circleciを実行した時
Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.1.4) required by your /home/circleci/project/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.1.4` Exited with code exit status 1 CircleCI received exit code 1
circleci build --job deploy .circleci/config.yml
すると
Docker image digest: xxxxxxxxxxxxxxx.......... ====>> Spin up environment Build-agent version () Error: Configuration errors: 1 error occurred: * Cannot find a job named `deploy` to run in the `jobs:` section of your configuration file. If you expected a workflow to run, check your config contains a top-level key called 'workflows:' Step failed Task failed Error: 1 error occurred: * Cannot find a job named `deploy` to run in the `jobs:` section of your configuration file. If you expected a workflow to run, check your config contains a top-level key called 'workflows:'
となります。
以下circleciの設定ファイルです。
.circleci/config.yml
version: 2.1 orbs: aws-ecr: circleci/aws-ecr@6.7.0 aws-ecs: circleci/aws-ecs@1.1.0 workflows: nginx-deploy: jobs: - aws-ecr/build-and-push-image: account-url: AWS_ECR_ACCOUNT_URL region: AWS_REGION aws-access-key-id: AWS_ACCESS_KEY_ID aws-secret-access-key: AWS_SECRET_ACCESS_KEY create-repo: true dockerfile: ./docker/nginx/Dockerfile repo: nginx tag: "${CIRCLE_SHA1}" filters: branches: only: master - aws-ecs/deploy-service-update: requires: - aws-ecr/build-and-push-image family: 'nginx-rails-app' cluster-name: '${ECS_ARN}' service-name: 'test' container-image-name-updates: "container=nginx,tag=${CIRCLE_SHA1}" rails-deploy: jobs: - aws-ecr/build-and-push-image: account-url: AWS_ECR_ACCOUNT_URL region: AWS_REGION aws-access-key-id: AWS_ACCESS_KEY_ID aws-secret-access-key: AWS_SECRET_ACCESS_KEY create-repo: true dockerfile: ./docker/rails/Dockerfile repo: rails tag: "${CIRCLE_SHA1}" filters: branches: only: master - aws-ecs/deploy-service-update: requires: - aws-ecr/build-and-push-image family: 'nginx-rails-app' cluster-name: '${ECS_ARN}' service-name: 'test' container-image-name-updates: "container=rails,tag=${CIRCLE_SHA1}"
root@xxxxxx:/app# bundle -v Bundler version 2.1.4
~/backend $ bundle -v +[master] Bundler version 2.1.4
解決策をご存知の方がいれば教え頂きたいですm(_ _)m
あなたの回答
tips
プレビュー