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(ci): live deployment for main #1045

Merged
merged 8 commits into from
Jun 5, 2023

Conversation

tthvo
Copy link
Member

@tthvo tthvo commented Jun 2, 2023

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed the last commit: git commit --amend --signoff

Fixes: #1027

Description of the change:

Added workflow to build preview assets for PR and main push.

  • Assets are build with Mirage JS injected.
  • Published with surge -> Need to add secrets.SURGE_TOKEN

Motivation for the change:

See #1027

Example:

On push to main:

@tthvo tthvo added ci feat New feature or request safe-to-test labels Jun 2, 2023
@tthvo tthvo marked this pull request as draft June 2, 2023 22:37
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-d39fb5f7597bfaf5b14eb0d0d406d73aa82449f8 sh smoketest.sh

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-70027e97bbccc66f17688bc684c43352ef367157 sh smoketest.sh

@tthvo tthvo force-pushed the live-deployment branch 2 times, most recently from c8c63a9 to 5b956b8 Compare June 2, 2023 23:42
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-5b956b83e9edd45139f07a0af7fd3165491ab6ba sh smoketest.sh

@tthvo tthvo requested a review from andrewazores June 2, 2023 23:50
@tthvo tthvo force-pushed the live-deployment branch from 5b956b8 to 8f6c872 Compare June 2, 2023 23:52
@tthvo tthvo marked this pull request as ready for review June 2, 2023 23:56
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-8f6c872a9fda98ce0d0c7744b687cd28601ffc6d sh smoketest.sh

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-d62ea952a1c8980c6e1c1a39ba2659ed7a718097 sh smoketest.sh

@tthvo tthvo changed the title feat(ci): live deployment for PR and main feat(ci): live deployment for main Jun 5, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-0cb988db98e5d14d7345048e5831f1cd86ceb1d2 sh smoketest.sh

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1045-9c1718c1fca464f2849a21ec10f213ce382bfb32 sh smoketest.sh

@tthvo
Copy link
Member Author

tthvo commented Jun 5, 2023

I am using to include any source files, assets, webpack and dependencies changes but exclude tests. Have to use ! here with paths because paths-ignore can't be used at the same time with paths:

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-and-excluding-paths

    paths:
      - 'src/app/**'
      - 'webpack.*.js'
      - 'yarn.lock'
      - 'tsconfig.json'
      - '!src/test/**'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci feat New feature or request safe-to-test
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Epic] Live demo deployment
2 participants