Created
April 17, 2023 00:37
-
-
Save jonmbake/0867829e10844945b2c1b6c9bf0d1a76 to your computer and use it in GitHub Desktop.
Fusionauth terraform provider ci start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# goreleaser build --snapshot --clean | |
curl -o docker-compose.yml https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/docker-compose.yml | |
curl -o .env https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/.env | |
awk ' | |
/SEARCH_TYPE: elasticsearch/ {print; print " FUSIONAUTH_APP_KICKSTART_FILE: ${FUSIONAUTH_APP_KICKSTART_FILE}"; next} | |
/fusionauth_config:\/usr\/local\/fusionauth\/config/ {print; print " - ./kickstart:/usr/local/fusionauth/kickstart"; next} | |
{print} | |
' docker-compose.yml > docker-compose.tmp && mv docker-compose.tmp docker-compose.yml | |
echo "FUSIONAUTH_APP_KICKSTART_FILE=/usr/local/fusionauth/kickstart/kickstart.json" >> .env | |
docker-compose up --wait | |
mkdir -p ../dist/registry.terraform.io/gpsinsight/fusionauth/0.1.87/ | |
cp ../dist/terraform-provider-fusionauth_darwin_amd64_v1/* ../dist/registry.terraform.io/gpsinsight/fusionauth/0.1.87/ | |
terraform init -plugin-dir=../dist | |
terraform apply --auto-approve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment