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

Fix (CI): Fix frontend deployment #1011

Merged
merged 5 commits into from
May 21, 2024
Merged

Fix (CI): Fix frontend deployment #1011

merged 5 commits into from
May 21, 2024

Conversation

drikusroor
Copy link
Contributor

@drikusroor drikusroor commented May 15, 2024

This PR adds several missing / incorrectly defined environment variables to the frontend build & deploy workflow and compose file and thereby fixes the deploy process.

Additionally, the rules for deployment have been altered to make it easier to manually deploy a branch:

  • If you manually trigger the workflow for the main branch, it will deploy the current main branch to the Acceptance environment.
  • If you manually trigger any other branch, it will deploy that branch to the Test environment.

Related to and cherrypicked from #1007 in order not to pollute the main branch with features not ready to be released yet.

* config: Set SENTRY_ENVIRONMENT to "test" and "acceptance" in relevant files so Sentry knows which environment it is running on (#972)

* ci: Update podman.yml workflow conditions

The `if` conditions in the `podman.yml` workflow file have been updated to include additional checks for the `workflow_dispatch` event. This ensures that the workflow is triggered correctly for the workflow dispatch button in combination with either the `develop` or the `main` branch.

* chore: Update podman.yml workflow variables to avoid the vite build failing due to missing environment variables

This commit updates the `podman.yml` workflow file to include additional variables related to the frontend HTML. These variables are used for the favicon, logo URL, Open Graph (OG) description, OG image, OG title, OG URL, and body class. The variables are set to empty strings if not provided. This change ensures that the workflow has the necessary variables for the frontend HTML.

* ci: Temporarily turn on deploy for acceptance on this branch

* chore: Try if manually setting the favicon fixes things

* ci: Update podman.yml workflow variables to include frontend HTML environment variables

This commit updates the `podman.yml` workflow file to include additional variables related to the frontend HTML. These variables are used for the favicon, logo URL, Open Graph (OG) description, OG image, OG title, OG URL, and body class. The variables are set to empty strings if not provided. This change ensures that the workflow has the necessary variables for the frontend HTML.

* ci: Test deploy to test environment

* chore: Update podman.yml workflow conditions for develop branch

(cherry picked from commit 257b3a7)
@drikusroor drikusroor changed the title Fixed: Fix frontend deployment Fix (CI): Fix frontend deployment May 15, 2024
@drikusroor drikusroor self-assigned this May 15, 2024
@drikusroor drikusroor marked this pull request as ready for review May 16, 2024 14:00
@drikusroor drikusroor added the Infrastructure Relates to deployment or testing label May 16, 2024
@drikusroor drikusroor merged commit 6d04769 into main May 21, 2024
7 checks passed
@drikusroor drikusroor deleted the fix/deploy-acc branch May 21, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Relates to deployment or testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants