Upgrading Keycloak
To upgrade the Keycloak instance to a new version, follow these steps:
- In the keycloak repository update the Keycloak version in the
docker-azure-devordocker-azure-prodfile to the desired version. You’ll need to update both theFROM quay.io/keycloak/keycloak:<version> as builderand theFROM quay.io/keycloak/keycloak:<version>lines. - Important: Before proceeding, head over to the release pipelines in Azure DevOps and edit the Keycloak deployment pipeline environment variables. Update the
versionvariable to match the new version you set in the repository. - Commit and push the changes to the repository.
- A new release will be triggered in Azure DevOps. Monitor the release to ensure it completes successfully.
- After the deployment is complete, head over to Azure container apps and create a new revision for the Keycloak container app to apply the changes. Here, you’ll need to click on the container image and select the image tag that corresponds to the new version you just deployed.
- Depending on if it is the dev or prod container app, you might need to manually direct traffic to the new revision once it’s fully running (this is required for the dev container app).