NOTE: This is currently in ALPHA and we are looking into improving experience for customers.
An update script for updating deprecated machine images quickly and automatically across entire orgs.
- Install the required Python packages with
pip install -r requirements.txt
- Run using
py ./image-updater.py
- Create a Personal Access Token with permissions to read and write to your repositories as well as open pull requests.
- Either edit the main.py file to insert your Personal Access Token and Organization name, or input them when prompted.
When the script has run, branches should have been created with the name Deprecated CircleCI Image Update
(unless edited) and a Pull Request created as well. Also, during this, local copies of the config.yml files will be created. These can safely be deleted, but you may want to check them out for debugging purposes.
If the script fails due to a branch creation error, ensure the branch does not exist already. If you ran the script once, it already exists, and thus needs to be deleted.