Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the action since 1.6.2 release: action.tar.gz not found #92

Closed
siketyan opened this issue Oct 10, 2023 · 4 comments · Fixed by #94
Closed

Cannot run the action since 1.6.2 release: action.tar.gz not found #92

siketyan opened this issue Oct 10, 2023 · 4 comments · Fixed by #94

Comments

@siketyan
Copy link
Contributor

Since v1.6.2 was released, we are not able to run this action, failing on docker build:

  #0 building with "default" instance using docker driver
  
  #1 [internal] load .dockerignore
  #1 transferring context: 2B done
  #1 DONE 0.0s
  
  #2 [internal] load build definition from Dockerfile
  #2 transferring dockerfile: 607B done
  #2 DONE 0.0s
  
  #3 [auth] library/alpine:pull token for registry-1.docker.io
  #3 DONE 0.0s
  
  #4 [internal] load metadata for docker.io/library/alpine:3.17.2
  #4 DONE 0.5s
  
  #5 [1/3] FROM docker.io/library/alpine:3.17.2@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517
  #5 resolve docker.io/library/alpine:3.17.2@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 done
  #5 extracting sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 0.1s
  #5 sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 1.64kB / 1.64kB done
  #5 sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 528B / 528B done
  #5 sha256:b2aa39c304c27b96c1fef0c06bee651ac9241d49c4fe34381cab8453f9a89c7d 1.47kB / 1.47kB done
  #5 sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 3.37MB / 3.37MB 0.1s done
  #5 extracting sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 0.1s done
  #5 DONE 0.3s
  
  #6 [2/3] RUN wget -q -O- https://github.com/srvaroa/labeler/releases/latest/download/action.tar.gz | tar xzvf -
  #6 0.341 wget: server returned error: HTTP/1.1 404 Not Found
  #6 0.342 tar: invalid magic
  #6 0.342 tar: short read
  #6 ERROR: process "/bin/sh -c wget -q -O- $ASSET_URL | tar xzvf -" did not complete successfully: exit code: 1
  ------
   > [2/3] RUN wget -q -O- https://github.com/srvaroa/labeler/releases/latest/download/action.tar.gz | tar xzvf -:
  0.341 wget: server returned error: HTTP/1.1 404 Not Found
  0.342 tar: invalid magic
  0.342 tar: short read
  ------
  Dockerfile:12
  --------------------
    10 |     WORKDIR /
    11 |     ARG ASSET_URL=https://github.com/srvaroa/labeler/releases/latest/download/action.tar.gz
    12 | >>> RUN wget -q -O- $ASSET_URL | tar xzvf -
    13 |     ENTRYPOINT ["/action"]
    14 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c wget -q -O- $ASSET_URL | tar xzvf -" did not complete successfully: exit code: 1
  Warning: Docker build failed with exit code 1, back off 1.424 seconds before retry.

This looks caused by 404 error returned by GitHub, downloading the source code archive.

  #6 [2/3] RUN wget -q -O- https://github.com/srvaroa/labeler/releases/latest/download/action.tar.gz | tar xzvf -
  #6 0.341 wget: server returned error: HTTP/1.1 404 Not Found
  #6 0.342 tar: invalid magic
  #6 0.342 tar: short read
  #6 ERROR: process "/bin/sh -c wget -q -O- $ASSET_URL | tar xzvf -" did not complete successfully: exit code: 1
@siketyan
Copy link
Contributor Author

siketyan commented Oct 10, 2023

Releases before 1.6.2 have action.tar.gz as their assets, but 1.6.2 does not have one.

1.6.1

image

1.6.2

image

@IvanSimanenka
Copy link

IvanSimanenka commented Oct 10, 2023

Getting the same error for v1.6.1.
It seems that ASSETS_URL https://github.com/srvaroa/labeler/releases/latest/download/action.tar.gz pointing to latest release is hardcoded.

@siketyan
Copy link
Contributor Author

Submitted a PR to fix this issue.
@srvaroa Could you please review the PR?

@srvaroa
Copy link
Owner

srvaroa commented Oct 10, 2023

image

v1.6.3 should be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants