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

Setup JS SDK for distribution to EUID CDN #72

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

alex-yau-ttd
Copy link
Contributor

@alex-yau-ttd alex-yau-ttd commented Mar 14, 2024

  • Configure webpack to also build euid-sdk
  • Add steps to github action for EUID

Testing

Successful run at: https://github.com/IABTechLab/uid2-web-integrations/actions/runs/8322196943, where the integ sdk can be seen at https://cdn.integ.euid.eu/euid-sdk-3.3.0.js.

Not in code

I have also added the following Github variables for integ & prod:

  • EUID_S3_BUCKET
  • AWS_ACCOUNT_ID
  • EUID_AWS_ACCOUNT_ID

And secrets:

  • EUID_AWS_DISTRIBUTION_ID

- Configure webpack to also build euid-sdk
- Add steps to github action for EUID
- Not in code: I have also added vars.EUID_S3_BUCKET and secrets.EUID_AWS_DISTRIBUTION_ID for integ in Github
@alex-yau-ttd alex-yau-ttd changed the title Setup JS SDK for EUID CDN distribution Setup JS SDK for distribution to EUID CDN Mar 15, 2024
@@ -18,10 +19,14 @@ module.exports = (env, argv) => {
devtool: prodSourceMaps ? 'source-map' : false,
entry: !env.espOnly
? {
main: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

main is used for single entry point, docs: https://webpack.js.org/concepts/entry-points/

Out of code: populate AWS_ACCOUNT_ID and EUID_AWS_ACCOUNT_ID variables in github
environment: ${{ matrix.environment }}
artifact: euidSDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-${{ needs.build.outputs.sdkVersion}}
invalidate_paths: '/euid-sdk-${{ needs.build.outputs.sdkVersion}}.js'
aws_account_id: ${{ vars.EUID_AWS_ACCOUNT_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you added the new vars and secret?

@alex-yau-ttd alex-yau-ttd merged commit c1377ab into main Mar 20, 2024
8 of 9 checks passed
@alex-yau-ttd alex-yau-ttd deleted the ajy-UID2-2526-Setup-for-EUID-CDN-distribution branch March 20, 2024 02:47
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