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

chore: update scripts to initialize with project_name #34

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

migmartri
Copy link
Member

Update labs code to get ready for this change chainloop-dev/chainloop#1375

It adds the requirement of doing att init indicating the project name.

Note that I also updated the onboarding project to return the project name too.

if: github.event_name == 'release' && github.event.action == 'published'
with:
project: ${{ inputs.workflow_project }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how this ever worked. Did I miss anything cc/ @javirln

@@ -676,7 +676,11 @@ chainloop_attestation_init() {
if [ -n "${CHAINLOOP_WORKFLOW_NAME}" ]; then
WF_NAME_VALUE="--workflow-name ${CHAINLOOP_WORKFLOW_NAME}"
fi
r=$(chainloop attestation init -f --remote-state --output json $CR_VALUE $WF_NAME_VALUE)
PROJECT_NAME_VALUE=""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlishka I might need your help here. I am trying to figure out how the push works.

I think it uses some kind of cache, but I guess that now we will need to update the cache to also take into account the project name, but I am struggling to find that. No rush

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh no, the cache is unique within the run, ok.

I am wondering then why we are passing the workflow name here

https://github.com/chainloop-dev/chainloop/blob/f215274ee36f6f0cb7010eadaeafbb60b394265c/.github/workflows/docs_deploy.yml#L96

@migmartri migmartri marked this pull request as draft October 9, 2024 20:59
@migmartri
Copy link
Member Author

Coverted to draft until I figure out how to make the push work with the cache.

@migmartri migmartri marked this pull request as ready for review October 9, 2024 21:03
@migmartri migmartri merged commit edd4d30 into main Oct 11, 2024
3 checks passed
@migmartri migmartri deleted the 1375-rewrite-labs branch October 11, 2024 09:30
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