Platform: GitHub
CI/CD: GitHub Actions
Additional technologies: Docker with Ubuntu base image
I'm creating a Dockerfile and I need to install a package (such as Terraform). Every time the 'current_version' within "https://checkpoint-api.hashicorp.com/v1/check/terraform" changes, then I want a pull request made to the repo (to change a JSON file with version info).
I've also looked into options such as Dependabot and Renovate. Maybe create a Cron job?
I would appreciate some advice as to how to do this.
Here's how the code would look on a high-level:
FROM ubuntu:18.04
RUN apt-get install # install packages such as curl and wget
wget -O terraform.zip https://releases.hashicorp.com/terraform/${JSON_FILE.TF_VERSION}/terraform_${JSON_FILE.TF_VERSION}_linux_amd64.zip