Skip to content

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.

Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
uses: chainloop-dev/labs/.github/workflows/chainloop_onboard.yml@main
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

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
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@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.

3 participants