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

Output deployment URL #4

Closed
rndquu opened this issue Mar 13, 2024 · 15 comments
Closed

Output deployment URL #4

rndquu opened this issue Mar 13, 2024 · 15 comments

Comments

@rndquu
Copy link
Member

rndquu commented Mar 13, 2024

Original comment

We should pass cloudflare deployment preview to cypress workflow here.

What should be done:

  1. Update current github action to return deployment URL in output (example)
  2. Update all ubiquity repos which use cypress workflow and set FRONTEND_URL env variable to https://github.com/ubiquity/cloudflare-deploy-action output
@0x4007
Copy link
Member

0x4007 commented Mar 13, 2024

Prob should be high priority if it's CI for all repos

@rndquu
Copy link
Member Author

rndquu commented Mar 13, 2024

Prob should be high priority if it's CI for all repos

I'll fix it as part of #1, this issue more of a reminder

@0xJoichiro
Copy link

@rndquu is this issue finished in #1 ?

@rndquu
Copy link
Member Author

rndquu commented Apr 19, 2024

@rndquu is this issue finished in #1 ?

No, you're free to take it

@0xJoichiro
Copy link

0xJoichiro commented Apr 19, 2024

@rndquu is this issue finished in #1 ?

No, you're free to take it

understood,how should i test the same?

@0xJoichiro
Copy link

0xJoichiro commented Apr 19, 2024

We can start with getting DEPLOYMENT_URL from the bash script for deploying to cloudflare

echo "DEPLOYMENT_URL=$url" >> "$GITHUB_ENV"

Set an output up for downstream actions

        echo "::set-output name=deploy_url::${{ env.DEPLOYMENT_URL }}"

Then could get that back as an output from something like here
=>

       url: ${{steps.deploy.outputs.deploy_url}}

please confirm this logic and i'll make the PR asap

@rndquu
Copy link
Member Author

rndquu commented Apr 19, 2024

We can start with getting DEPLOYMENT_URL from the bash script for deploying to cloudflare

echo "DEPLOYMENT_URL=$url" >> "$GITHUB_ENV"

Set an output up for downstream actions

        echo "::set-output name=deploy_url::${{ env.DEPLOYMENT_URL }}"

Then could get that back as an output from something like here =>

       url: ${{steps.deploy.outputs.deploy_url}}

please confirm this logic and i'll make the PR asap

Sounds good

@rndquu
Copy link
Member Author

rndquu commented Apr 19, 2024

@rndquu is this issue finished in #1 ?

No, you're free to take it

understood,how should i test the same?

Not sure what you mean by "test the same"

@0xJoichiro
Copy link

@rndquu is this issue finished in #1 ?

No, you're free to take it

understood,how should i test the same?

Not sure what you mean by "test the same"

I meant to ask,how would we test this workflow in action?

@rndquu
Copy link
Member Author

rndquu commented Apr 20, 2024

@rndquu is this issue finished in #1 ?

No, you're free to take it

understood,how should i test the same?

Not sure what you mean by "test the same"

I meant to ask,how would we test this workflow in action?

Test locally first (i.e. in one of your workflows)

@Sadaf-A
Copy link
Contributor

Sadaf-A commented Jul 12, 2024

/start

Copy link

ubiquibot bot commented Jul 12, 2024

Warning! This task was created over 120 days ago. Please confirm that this issue specification is accurate before starting.
DeadlineFri, Jul 12, 3:37 PM UTC
Registered Wallet 0x0BEd00438D57d07E3667b85Fa8EB86Af147C7025
Tips:
  • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address.
  • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
  • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.

@rndquu
Copy link
Member Author

rndquu commented Sep 25, 2024

@gentlementlegen It seems we may close this one as "not planned" since deployment URL may be fetched from env variable + cypress seems to be working fine locally

@gentlementlegen
Copy link
Member

Agreed, and so far we've been able to fake auth even within Cypress for projects like work.ubq.fi so this is no relevant for now.

@gentlementlegen gentlementlegen closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
Copy link

ubiquity-os bot commented Sep 26, 2024

# Issue was not closed as completed. Skipping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants