We make our code available as open source on GitHub: https://github.com/Amsterdam/amsterdam-app-frontend
Publishing code as open source is a best practice. For the City of Amsterdam, GitHub is the place to do it. Because we want to keep the Azure DevOps repos as the source of truth, we have added a job to the build pipeline that automatically publishes the source code to GitHub on every front end build.
The pipelines are configured via these files:
pipelines/publish.yml
- contains the set up for the job "Push_to_github"pipelines/templates/push-repo-to-github.yml
- contains the configuration for this job
This configuration uses the SSH variables, username and email address as defined in the variable group github-authorization.
Note that the SHH connection to GitHub is similar to the Storybook release config.