Git Product home page Git Product logo

Comments (1)

anGie44 avatar anGie44 commented on September 27, 2024

Update: Release/Registry team has a staging environment however it is public so does not satisfy our requirements; creating a new staging environment would be ideal but the engineering efforts (outside of our team) to do so may not meet our GA timeline as well.

Initial Release Components needed on GA Day:

Current Solution for Validating Pre-Release:

  • Adopt the TF Provider GithubActions workflow for pre-release and future GA release and beyond

Alt Solution for Validating Pre-Release (not entirely E2E):

-* Make a copy of Terraform Provider Release TC configuration and only enable steps 1-3 (terraform download through compile); steps 4 (release) and 5 (website) will not be validated as we want content to be private

  • 👉 This does bring a point to mention that perhaps tf-deploy/hc-releases is not setup to do the following per Publishing to the Registry documentation:

When uploading your new provider version to GitHub, next to the zip files containing your binaries for each platform, include a file named terraform-provider-$NAME_$VERSION_manifest.json (where $NAME is your provider's name, like random and $VERSION is your provider's version, like 1.2.3)...Include the SHA-256 checksum of this JSON file in your SHA256SUMS file.

# Possible addition
  versionManifestPath=$GOPATH/src/github.com/$PROVIDER_ORG/terraform-provider-$PROVIDER_NAME/terraform-provider-${PROVIDER_NAME}_${DEPLOYMENT_TARGET_VERSION}_manifest.json
  if [ -f $versionManifestPath ]; then
    printf "Provider is Protocol 6 only - updating build settings..\n"
    printf "##teamcity[setParameter name='env.PROTOCOL_VERSION' value='6']\n"
    printf "##teamcity[setParameter name='env.PROTOCOL_VERSIONS' value='6.0']"
  fi

Additional Findings:

  • The TC config defines a DEPLOY_ENV parameters but it's not used in tf-deploy scripts or handed off to hc-releases
  • There exist a staging.releases.hashicorp.com for provider artifacts and a https://staging-registry.terraform.io/ (will be replaced byhttps://registry.staging.terraform.io/ soon)both of which are public

from terraform-provider-awscc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.