mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
20 lines
552 B
Bash
20 lines
552 B
Bash
# Init providers plugins
|
|
docker run \
|
|
--workdir=/srv/workspace \
|
|
--mount type=bind,source=.,target=/srv/workspace \
|
|
ghcr.io/opentofu/opentofu:latest \
|
|
init
|
|
|
|
# Creating plan file
|
|
docker run \
|
|
--workdir=/srv/workspace \
|
|
--mount type=bind,source=.,target=/srv/workspace \
|
|
ghcr.io/opentofu/opentofu:latest \
|
|
plan -out=main.plan
|
|
|
|
# Applying plan file
|
|
docker run \
|
|
--workdir=/srv/workspace \
|
|
--mount type=bind,source=.,target=/srv/workspace \
|
|
ghcr.io/opentofu/opentofu:latest \
|
|
apply "/srv/workspace/main.plan" |