Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Bug] Fix task `agora-data:publish-image` #2732

Closed tschaffter closed 3 days ago

tschaffter commented 3 days ago

Is there an existing issue for this?

What product(s) are you seeing the problem on?

Agora

Current behavior

The CI/CD workflow fails to push the image during the task agora-data:publish-image to GHCR. The new "version" tags is pushed but not edge.

Workflow logs: https://github.com/Sage-Bionetworks/sage-monorepo/actions/runs/9688567621/job/26740065572

Package on GHCR: https://github.com/Sage-Bionetworks/Agora/pkgs/container/agora-data

cc @hallieswan

Expected behavior

No response

Anything else?

No response

Commit ID

No response

Are you developing inside the dev container?

Code of Conduct

hallieswan commented 3 days ago

The workflow fails with the following error:

#15 ERROR: denied: permission_denied: write_package
------
 > pushing ghcr.io/sage-bionetworks/agora-data:edge with docker:
------
ERROR: denied: permission_denied: write_package

>  Removing temp folder /tmp/docker-build-push-GTWlpr 

 NX   buildx failed with: ERROR: denied: permission_denied: write_package

Since we created the agora-data package from the current Sage-Bionetworks/Agora repo, the Sage-Bionetworks/sage-monorepo action doesn't have Actions access to the package and the workflow can't push a new image to the package.

Plan to fix:

hallieswan commented 3 days ago

The agora-data package now includes sha, edge, and data release version tags for images built by the sage-monorepo workflow.