semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.69k stars 1.07k forks source link

Problem: Opentofu workspaces not supported with backend http #2329

Open Khaz66 opened 2 months ago

Khaz66 commented 2 months ago

Issue

I tried to launch my opentofu code with semaphore UI. In my organization, we use our own git to store the tf.state so we use a backend http.

When i launch the task i have a message :

image

It seems that the backend http doesn't support workspaces. Would it be possible to make the use of a workspace optionnal ?

Impact

Other

Installation method

Binary

Database

MySQL

Browser

Firefox

Semaphore Version

2.10.22-e44910d-1721658299

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

OpenTofu v1.8.1

jriberg commented 2 months ago

I have the same issue. Haven't found any workarounds

jriberg commented 2 months ago

I made a fix here in this PR. I'm using my branch right now in my own environment.

Pull Request

jriberg commented 1 month ago

you can tryout my updated docker image from dockerhub

zancres commented 1 month ago

I've been having the same error when trying to use terraform remote state (HCP backend) since it uses a custom workspace I would think.

jriberg commented 1 month ago

@zancres please try my image that I linked above, it have my fix in it and works good for me both at home and at the company I'm working for at the moment