Git Commit Message in Environment Variable

ok maybe the issue is the place i’m trying to do it in:

deployment:
  elasticbeanstalk:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - ./deploy.sh $CIRCLE_SHA1 $GIT_COMMIT_DESC:
        environment:
          GIT_COMMIT_DESC: $(git log --format=oneline -n 1 $CIRCLE_SHA1)

because i get this big red error :smile: :

‘deployment.elasticbeanstalkshould’ be a either a deploy section with commands, a Heroku deploy section or a CodeDeploy deploy section.

update: I guess since I’m calling a script I could/should just do it in that script

1 Like