Repository: runatlantis/atlantis (language: go)

Issue:
fix: renovate dockerfile handling
## what

<!--
- Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
- Use bullet points to be concise and to the point.
-->
The Dockerfile defines default versions of terraform, opentofu and conftest in `ARG`'s. Renovate will now update these.

<img width="472" alt="image" src="https://github.com/runatlantis/atlantis/assets/33333571/5c60eaf6-54b8-4756-8980-d694a75e918d">

This also corrects the renovate configuration for opentofu.

## why

<!--
- Provide the justifications for the changes (e.g. business case). 
- Describe why these changes were made (e.g. why do these commits fix the problem?)
- Use bullet points to be concise and to the point.
-->

This broke in https://github.com/runatlantis/atlantis/commit/6d3aef294e166948131a61fa232fca28b9aa205f when it switched the defines from `ENV`s to `ARG`s.

## tests

<!--
- [ ] I have tested my changes by ...
-->

Manually tested on my fork of Atlantis.

## references

<!--
- Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow). 
- Use `closes #123`, if this PR closes a GitHub issue `#123`
-->




Discussion / hints:

Fix patch:
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index c9659acf19..a03bfba879 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -79,7 +79,12 @@
         '(^|/)Dockerfile\\.[^/]*$',
       ],
       matchStrings: [
-        'renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=(?<currentValue>.*)\\s',
+        // example:
+        // # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
+        // ENV DEFAULT_TERRAFORM_VERSION=x.x.x
+        // # renovate: datasource=github-releases depName=open-policy-agent/conftest
+        // ARG DEFAULT_CONFTEST_VERSION=x.x.x
+        "renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s(ARG|ENV) .*?_VERSION=(?<currentValue>.*)\\s",
       ],
       versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}',
       extractVersionTemplate: '^v(?<version>\\d+\\.\\d+\\.\\d+)',
diff --git a/Dockerfile b/Dockerfile
index de54c1ff18..b839a76197 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,7 +6,7 @@ ARG GOLANG_TAG=1.22.1-alpine
 
 # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
 ARG DEFAULT_TERRAFORM_VERSION=1.8.3
-# renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
+# renovate: datasource=github-releases depName=opentofu/opentofu versioning=hashicorp
 ARG DEFAULT_OPENTOFU_VERSION=1.7.1
 # renovate: datasource=github-releases depName=open-policy-agent/conftest
 ARG DEFAULT_CONFTEST_VERSION=0.52.0


Test patch: