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

updates to GH flow, to use branch #484

Merged
merged 9 commits into from
Apr 11, 2024
Merged

updates to GH flow, to use branch #484

merged 9 commits into from
Apr 11, 2024

Conversation

farhanW3
Copy link
Contributor

@farhanW3 farhanW3 commented Apr 9, 2024

PR-Codex overview

This PR updates the GitHub Actions workflow to trigger on release creation events and dynamically fetch the branch for image building.

Detailed summary

  • Switched trigger from tag creations to release creations
  • Dynamically fetch branch for image building based on release
  • Updated Docker image tags based on release information

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

zeet-co bot commented Apr 9, 2024

We're building your pull request over on Zeet.
Click me for more info about your build and deployment.
Once built, this branch can be tested at: https://web3-api-akbv-fk-gh-upds.chainsaw-dev.zeet.app before merging 😉

Comment on lines 12 to 21
- name: Extract tag name
id: get_tag_name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Determine Branch Name
id: get_branch
run: |
branch=$(git branch -r --contains tags/${{ env.TAG_NAME }} | grep 'origin/' | sed 's|origin/||' | head -n 1)
echo "BRANCH_NAME=$branch" >> $GITHUB_ENV

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need these steps here, as the create event, doesn't include the tag_name & branch_name which we need in the successive steps

@farhanW3 farhanW3 merged commit 8305d06 into main Apr 11, 2024
5 checks passed
@farhanW3 farhanW3 deleted the fk/gh-upds branch April 11, 2024 23:53
farhanW3 added a commit that referenced this pull request Apr 19, 2024
* CICD for beta-nightly image (#481)

* Updated Packages + UserOp Confirmation flow updated (#479)

* Updated Packages + UserOp Confirmation flow updated

* wallets sdk updated

* fix: missing querystring + description upd (#486)

* Added querystring to fastify route (#487)

* fix: reject deprecated chains (#488)

* chore: Allow cancelling txs that already errored (#491)

* chore: Allow cancelling txs that already errored

* clean up response

* naming

* update cancelledAt

* fix: Cancel tx if populating a tx to retry fails (#493)

* fix: Cancel tx if populating a tx to retry fails

* ensure cancel uses high enough gas

* fix build

* combine prepare + send flows again

* updates to GH flow, to use branch (#484)

* updates to GH flow, to use branch

* removed prelease incorrect tag

* upds

* got back tag creation check

* upds

* comments updated

* final upds to handle the flow

* Updated to use release::create for CI/CD image build/push flow

* Updates to GH workflow to not push to  if not release not from main (#495)

* feat(experimental): Keypair auth (#494)

* reorganize helper file

* wip

* support keypair auth

* fix unit tests

* return error messages for keypair auth errors

* Don't catch JsonWebToken errors

* catch access token

* move public keys to db

* fix: add crud endpoints

* wip

* add algorithm

* add feature envvar

* handle each jwt type separately

* rename

* remove expiration limit

* Fix: Deploy Published Contract Flow (#499)

* Updated Deploy Published Contract Flow + ProcessTx

* removed commented lines

* Updates

* chore: add updated template for the railway (#490)

* chore: add updated template for the railway

Signed-off-by: Waren Gonzaga <[email protected]>

* chore: remove referral code

Signed-off-by: Waren Gonzaga <[email protected]>

---------

Signed-off-by: Waren Gonzaga <[email protected]>

* Build fixes (#500)

* Fix for Issue 502 (#505)

* Added tx overrides for EOA + AA

---------

Signed-off-by: Waren Gonzaga <[email protected]>
Co-authored-by: Phillip Ho <[email protected]>
Co-authored-by: Waren Gonzaga <[email protected]>
farhanW3 added a commit that referenced this pull request Apr 19, 2024
* add gas to txOverrides

* Update: Completed Tx-Override (#506)

* CICD for beta-nightly image (#481)

* Updated Packages + UserOp Confirmation flow updated (#479)

* Updated Packages + UserOp Confirmation flow updated

* wallets sdk updated

* fix: missing querystring + description upd (#486)

* Added querystring to fastify route (#487)

* fix: reject deprecated chains (#488)

* chore: Allow cancelling txs that already errored (#491)

* chore: Allow cancelling txs that already errored

* clean up response

* naming

* update cancelledAt

* fix: Cancel tx if populating a tx to retry fails (#493)

* fix: Cancel tx if populating a tx to retry fails

* ensure cancel uses high enough gas

* fix build

* combine prepare + send flows again

* updates to GH flow, to use branch (#484)

* updates to GH flow, to use branch

* removed prelease incorrect tag

* upds

* got back tag creation check

* upds

* comments updated

* final upds to handle the flow

* Updated to use release::create for CI/CD image build/push flow

* Updates to GH workflow to not push to  if not release not from main (#495)

* feat(experimental): Keypair auth (#494)

* reorganize helper file

* wip

* support keypair auth

* fix unit tests

* return error messages for keypair auth errors

* Don't catch JsonWebToken errors

* catch access token

* move public keys to db

* fix: add crud endpoints

* wip

* add algorithm

* add feature envvar

* handle each jwt type separately

* rename

* remove expiration limit

* Fix: Deploy Published Contract Flow (#499)

* Updated Deploy Published Contract Flow + ProcessTx

* removed commented lines

* Updates

* chore: add updated template for the railway (#490)

* chore: add updated template for the railway

Signed-off-by: Waren Gonzaga <[email protected]>

* chore: remove referral code

Signed-off-by: Waren Gonzaga <[email protected]>

---------

Signed-off-by: Waren Gonzaga <[email protected]>

* Build fixes (#500)

* Fix for Issue 502 (#505)

* Added tx overrides for EOA + AA

---------

Signed-off-by: Waren Gonzaga <[email protected]>
Co-authored-by: Phillip Ho <[email protected]>
Co-authored-by: Waren Gonzaga <[email protected]>

* updates to help with better readability

---------

Signed-off-by: Waren Gonzaga <[email protected]>
Co-authored-by: farhanW3 <[email protected]>
Co-authored-by: farhanW3 <[email protected]>
Co-authored-by: Phillip Ho <[email protected]>
Co-authored-by: Waren Gonzaga <[email protected]>
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