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

[BUG] module 'OpenSSL.crypto' has no attribute 'sign' #1025

Open
pemavor-repo opened this issue Dec 12, 2024 · 0 comments
Open

[BUG] module 'OpenSSL.crypto' has no attribute 'sign' #1025

pemavor-repo opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@pemavor-repo
Copy link

Affected builder image

`gcr.io/cloud-builders/docker

Expected Behavior

Expected to complete build steps, because there are no changes.

Actual Behavior

It is giving this error:

Step #4 - "Build":
ERROR: build step 4 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
ERROR
Finished Step #4 - "Build"
Step #4 - "Build": The command '/bin/sh -c echo "$JSON_SECRET" > json.json && mkdir -p Kuga && gcloud auth activate-service-account [email protected] --key-file=json.json --project=blah && gsutil -m cp gs://blah/* Kuga/' returned a non-zero code: 1
Step #4 - "Build": CommandException: 1 file/object could not be transferred.
Step #4 - "Build": module 'OpenSSL.crypto' has no attribute 'sign'
Step #4 - "Build": Activated service account credentials for: [[email protected]]
Step #4 - "Build": ---> Running in a455b782e60d
Step #4 - "Build": Step 3/24 : RUN echo "$JSON_SECRET" > json.json && mkdir -p Kuga && gcloud auth activate-service-account [email protected] --key-file=json.json --project=blah && gsutil -m cp gs://blah/* Kuga/
Step #4 - "Build": ---> 85aaef6f65db
Step #4 - "Build": Removing intermediate container 465e87536bab
Step #4 - "Build": ---> Running in 465e87536bab
Step #4 - "Build": Step 2/24 : ARG JSON_SECRET
Step #4 - "Build": ---> fc1f54faf8b4
Step #4 - "Build": Step 1/24 : FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine AS packagecopy

Step #4 - "Build": Sending build context to Docker daemon 1.872MB
Step #4 - "Build": Already have image (with digest): gcr.io/cloud-builders/docker
Starting Step #4 - "Build"

Steps to Reproduce the Problem

  1. Add this step to your yaml file
  • name: 'gcr.io/cloud-builders/docker'
    id: Build
    entrypoint: 'bash'
    args: ['-c', 'docker build -t gcr.io/$PROJECT_ID/some.api:$SHORT_SHA . --build-arg JSON_SECRET="$(cat /workspace/secret.txt)" --build-arg GRA_JSON_SECRET="$(cat /workspace/secret-gra.txt)"--no-cache']

Additional Info

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

No branches or pull requests

1 participant