BobAnkh / auto-generate-changelog

A Github Action to generate CHANGELOG automatically according to conventional commits. Feel free to contribute!
Apache License 2.0
81 stars 22 forks source link

[bug] Docker build failed with code 100 #64

Closed JotaRata closed 3 years ago

JotaRata commented 3 years ago

Describe the bug

The execution of the action fails at build v1.0.4

To Reproduce

I just have the same YML file as this repo. When I push a new commit the workflow starts executing and fails at build time

Expected behavior

Build and Run should complete with no problems

Additional context

Action log:

Build container for action use: '/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4/Dockerfile'.
  /usr/bin/docker build -t da7a08:2cc8bbe855834cf0b86cc1b558947a91 -f "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4/Dockerfile" "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4"
  Sending build context to Docker daemon  138.8kB

  Step 1/5 : FROM python:3.9.6-slim
  3.9.6-slim: Pulling from library/python
  99046ad9247f: Pulling fs layer
  dae61f727682: Pulling fs layer
  466485ee6277: Pulling fs layer
  de739b056673: Pulling fs layer
  1374279231a5: Pulling fs layer
  de739b056673: Waiting
  1374279231a5: Waiting
  dae61f727682: Verifying Checksum
  dae61f727682: Download complete
  466485ee6277: Verifying Checksum
  466485ee6277: Download complete
  99046ad9247f: Verifying Checksum
  99046ad9247f: Download complete
  de739b056673: Verifying Checksum
  de739b056673: Download complete
  1374279231a5: Verifying Checksum
  1374279231a5: Download complete
  99046ad9247f: Pull complete
  dae61f727682: Pull complete
  466485ee6277: Pull complete
  de739b056673: Pull complete
  1374279231a5: Pull complete
  Digest: sha256:4115592fd02679fb3d9e8c513cae33ad3fdd64747b64d32b504419d7118bcd7c
  Status: Downloaded newer image for python:3.9.6-slim
   ---> c6e50ab8d425
  Step 2/5 : RUN apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*
   ---> Running in 15b494cbe627
  Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
  Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
  Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
  Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [25.8 kB]
  Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
  Fetched 8397 kB in 2s (5508 kB/s)
  Reading package lists...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Version '1:2.20.1-2+deb10u3' for 'git' was not found
  The command '/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

  Warning: Docker build failed with exit code 100, back off 2.585 seconds before retry.
  /usr/bin/docker build -t da7a08:2cc8bbe855834cf0b86cc1b558947a91 -f "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4/Dockerfile" "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4"
  Sending build context to Docker daemon  138.8kB

  Step 1/5 : FROM python:3.9.6-slim
   ---> c6e50ab8d425
  Step 2/5 : RUN apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*
   ---> Running in 78b2652d8a00
  Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
  Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
  Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
  Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [25.8 kB]
  Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
  Fetched 8397 kB in 2s (5542 kB/s)
  Reading package lists...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Version '1:2.20.1-2+deb10u3' for 'git' was not found
  The command '/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

  Warning: Docker build failed with exit code 100, back off 4.946 seconds before retry.
  /usr/bin/docker build -t da7a08:2cc8bbe855834cf0b86cc1b558947a91 -f "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4/Dockerfile" "/home/runner/work/_actions/BobAnkh/auto-generate-changelog/v1.0.4"
  Sending build context to Docker daemon  138.8kB

  Step 1/5 : FROM python:3.9.6-slim
   ---> c6e50ab8d425
  Step 2/5 : RUN apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*
   ---> Running in 73912dc04669
  Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
  Get:2 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
  Get:3 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
  Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
  Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [25.8 kB]
  Fetched 8397 kB in 1s (5847 kB/s)
  Reading package lists...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Version '1:2.20.1-2+deb10u3' for 'git' was not found
  The command '/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends git=1:2.20.1-2+deb10u3 &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Error: Docker build failed with exit code 100
boring-cyborg[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

gitmagic-app[bot] commented 3 years ago

Everything looks good :thumbsup:

BobAnkh commented 3 years ago

@JotaRata Thank you for figuring out this bug. It seems that the git version is changed to 1:2.30.2-1, I will see how to fix this more gracefully.

BobAnkh commented 3 years ago

@JotaRata Hello, I think the bug is removed in the master branch and the new release version. Also see a new build-test added: action

JotaRata commented 3 years ago

Thanks for the info!

Tomorrow I will take a look and see how it goes

BobAnkh commented 3 years ago

Ok, thank your for testing it! Please do let me know if there are some other bugs or enhancement.

JotaRata commented 3 years ago

It works perfectly. Thanks for your help!

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.