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

feat: Migrate Actions #532

Merged
merged 1 commit into from
Oct 4, 2024
Merged

feat: Migrate Actions #532

merged 1 commit into from
Oct 4, 2024

Conversation

oodamien
Copy link
Collaborator

@oodamien oodamien commented Oct 2, 2024

Resolves #531

@oodamien oodamien requested review from onobc and removed request for onobc October 2, 2024 08:03
Copy link

github-actions bot commented Oct 2, 2024

🚀 Preview at https://40f44e49.dataflow-website.pages.dev

with:
message-id: cloudflare-deploy
message: |
🚀 Preview at ${{ steps.cloudflare-publish.outputs.url }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice touch!

with:
node-version: 18.2.0

# setup cf cli with bg plugin and login
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this something we will want to add going forward? If not, I would be in favor of just removing the commented code. By the time that we decide to use the commented code it will likely be out of date.

name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mind bumping this to @v4?

# plugin-id: blue-green-deploy
# login: true

# do site build and prepare for cf push
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ha! I am guessing "cf push" here means "CloudFlare push" and not the predecessor well-know "cf push" for CloudFoundry.

with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: ${{ secrets.CF_PROJECT_NAME }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The other secrets are org secrets. This one is repo secret. Can you share this w/ me so I can add to our Vault store w/ the other scdf secrets?

id: cloudflare-publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am sure you did not choose these secret names as they are at the org level, but CF_ screams CloudFoundry. Who in the heck does CloudFlare think it is trying to gobble up the historical CloudFoundry CF_ prefix 🤣

message-id: cloudflare-deploy
message: |
🚀 Preview at ${{ steps.cloudflare-publish.outputs.url }}
# Chat Notification
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would be in favor of removing this commented out code and then re-adding later when/if we decide to do that.

Copy link
Collaborator

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @oodamien . Nice work! I have a few minor nit-level comments. Other than that, LGTM.

@onobc
Copy link
Collaborator

onobc commented Oct 2, 2024

🚀 Preview at https://c3c98c17.dataflow-website.pages.dev

Preview looks good @oodamien . I love this auto-generated-PR comment w/ a link to the site preview.

I took it for a spin and seems good. The redirects are not expected to work at this phase, correct?

pull-requests: write

jobs:
# build and deploy staging
Copy link
Collaborator

Choose a reason for hiding this comment

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

A couple of infos:

  • This comment says we are deploying into staging
  • The workflow file is named prod-build-*
  • The output generates a preview link (I am guessing this is staging)
  • We have the commented out blue/green deploy action below

A couple of questions:

  1. What is the output of this PR before the merge.
  2. What is the output once the PR is merged?
  3. How do we get to production?

@oodamien oodamien merged commit 7593a4e into main Oct 4, 2024
2 checks passed
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.

Migration to CloudFlare
2 participants