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

fix(build): Missing gpg-agent for the SaaS build #4356

Merged
merged 3 commits into from
Jul 18, 2024
Merged

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Jul 18, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Fixes the following build error:

 > [saas-api 1/4] RUN --mount=type=secret,id=sse_pgp_pkey   apk add gpg &&   gpg --import /run/secrets/sse_pgp_pkey &&   mv /root/.gnupg/ /app/ &&   chown -R nobody /app/.gnupg/:
#21 1.950 gpg: /root/.gnupg/trustdb.gpg: trustdb created
#21 1.950 gpg: key 00FA6826BD9B2E99: public key "Fastly logs (Used to encrypt/decrypt fastly logs) <[email protected]>" imported
#21 1.951 gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
#21 1.951 gpg: can't connect to the agent: No such file or directory
#21 1.951 gpg: error getting the KEK: No agent running
#21 1.951 gpg: error reading '/run/secrets/sse_pgp_pkey': No agent running
#21 1.951 gpg: import from '/run/secrets/sse_pgp_pkey' failed: No agent running
#21 1.951 gpg: Total number processed: 0
#21 1.951 gpg:               imported: 1
#21 1.951 gpg:       secret keys read: 1

https://github.com/Flagsmith/flagsmith/actions/runs/9990268125/job/27610616512

How did you test this code?

This is a CI change.

Copy link

vercel bot commented Jul 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jul 18, 2024 11:07am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Jul 18, 2024 11:07am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Jul 18, 2024 11:07am

@khvn26 khvn26 changed the title Fix/missing gpg agent @khvn26 fix(build): Missing gpg-agent for the SaaS build Jul 18, 2024
@khvn26 khvn26 changed the title @khvn26 fix(build): Missing gpg-agent for the SaaS build fix(build): Missing gpg-agent for the SaaS build Jul 18, 2024
Copy link
Contributor

github-actions bot commented Jul 18, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-4356 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-4356 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4356 Finished ✅ Results

@khvn26 khvn26 added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit c655c73 Jul 18, 2024
18 of 19 checks passed
@khvn26 khvn26 deleted the fix/missing-gpg-agent branch July 18, 2024 11:08
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 this pull request may close these issues.

2 participants