Skip to content

There is no git in the docker image? #1082

Description

@melcloud

Describe the bug
When running FerrFlow inside gitlab with ghcr.io/ferrlabs/ferrflow container image, I got following errors when trying to perform release:

  Warning: could not inspect release branch ferrflow/release-main: E2013
Error: rev-parse HEAD failed
  Caused by: spawn `git rev-parse HEAD` failed (is git in PATH?)
  Caused by: No such file or directory (os error 2)

It also happens locally as well, looks like the Dockerfile doesn't contain git?

To Reproduce
Steps to reproduce:

  1. Setup a repository with ferrflow init
  2. Run docker run -it --rm -e GITLAB_TOKEN -v $(pwd):/repo ghcr.io/ferrlabs/ferrflow:latest release

Expected behavior
Can parse the rev HEAD and create release

Environment

  • ferrflow version: 7.21.3

  • OS: MacOS

  • Used as: CLI / Gitlab

  • Logs / output:

    Warning: could not fetch remote tags: spawn `git fetch --tags` failed (is git in PATH?)
    Changed files in last commit:
     .gitlab-ci.yml
    
    ↻ support-manage-IIS — recovering missed release
     ✓ Updated /repo/support/manage-IIS/CHANGELOG.md
     Warning: could not inspect release branch ferrflow/release-main: E2013
    Error: rev-parse HEAD failed
     Caused by: spawn `git rev-parse HEAD` failed (is git in PATH?)
     Caused by: No such file or directory (os error 2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions