@@ -144,20 +144,20 @@ jobs:
144144 with :
145145 ref : ${{ github.ref }}
146146 fetch-depth : 0
147- - uses : hashicorp /setup-terraform@v3
147+ - uses : opentofu /setup-opentofu@v1
148148 with :
149- terraform_version : 1.2.4
150- - name : Terraform Init
151- run : terraform init
149+ tofu_version : 1.9.0
150+ - name : OpenTofu Init
151+ run : tofu init
152152 env :
153153 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
154154 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
155155 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
156- - name : Terraform Validate
156+ - name : OpenTofu Validate
157157 id : validate
158- run : terraform validate -no-color
159- - name : Terraform apply
160- run : terraform apply -target module.pretix -target module.pycon_backend -target module.clamav -target module.database -target module.emails -target module.cluster -target module.vpc -no-color -auto-approve &> /dev/null
158+ run : tofu validate -no-color
159+ - name : OpenTofu apply
160+ run : tofu apply -exclude module.pycon_frontend -no-color -auto-approve &> /dev/null
161161 env :
162162 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
163163 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -205,20 +205,20 @@ jobs:
205205 with :
206206 ref : ${{ github.ref }}
207207 fetch-depth : 0
208- - uses : hashicorp /setup-terraform@v3
208+ - uses : opentofu /setup-opentofu@v1
209209 with :
210- terraform_version : 1.2.4
211- - name : Terraform Init
212- run : terraform init
210+ tofu_version : 1.9.0
211+ - name : OpenTofu Init
212+ run : tofu init
213213 env :
214214 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
215215 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
216216 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
217- - name : Terraform Validate
217+ - name : OpenTofu Validate
218218 id : validate
219- run : terraform validate -no-color
220- - name : Terraform apply
221- run : terraform apply -no-color -auto-approve &> /dev/null
219+ run : tofu validate -no-color
220+ - name : OpenTofu apply
221+ run : tofu apply -no-color -auto-approve &> /dev/null
222222 env :
223223 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
224224 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
0 commit comments