Skip to content

Commit

Permalink
Generated provider from the Official 1Password terraform provider
Browse files Browse the repository at this point in the history
Provider version 1.1.4
  • Loading branch information
prom3theu5 committed Jun 12, 2022
1 parent 7ca6563 commit 4096e89
Show file tree
Hide file tree
Showing 92 changed files with 9,785 additions and 606 deletions.
32 changes: 12 additions & 20 deletions deployment-templates/release.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,21 @@ on:
tags:
- v*.*.*
env:
# THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES
GITHUB_TOKEN: ${{ YOUR GITHUB TOKEN HERE }}
# IF YOU NEED TO PUBLISH A NPM PACKAGE THEN ENSURE A NPM_TOKEN SECRET IS SET
# AND PUBLISH_NPM: TRUE. IF YOU WANT TO PUBLISH TO A PRIVATE NPM REGISTRY
# THEN ENSURE THE NPM_REGISTRY_URL IS CHANGED
NODE_AUTH_TOKEN: ${{ YOUR NPM TOKEN HERE }}
NPM_TOKEN: ${{ YOUR NPM TOKEN HERE }}

GITHUB_TOKEN: ${{ github.token }}

NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
PUBLISH_NPM: true
NPM_REGISTRY_URL: https://registry.npmjs.org
# IF YOU NEED TO PUBLISH A NUGET PACKAGE THEN ENSURE AN NUGET_PUBLISH_KEY
# SECRET IS SET AND PUBLISH_NUGET: TRUE. IF YOU WANT TO PUBLISH TO AN ALTERNATIVE
# NPM REGISTRY THEN ENSURE THE NPM_REGISTRY_URL IS CHANGED
NUGET_PUBLISH_KEY: ${{ YOUR NUGET PUBLISH KEY HERE }}

NUGET_PUBLISH_KEY: ${{ secrets.PUBLIC_NUGET_TOKEN }}
NUGET_FEED_URL: https://api.nuget.org/v3/index.json
PUBLISH_NUGET: true
# IF YOU NEED TO PUBLISH A PYPI PACKAGE THEN ENSURE AN PYPI_API_TOKEN
# SECRET IS SET AND PUBLISH_PYPI: TRUE. IF YOU WANT TO PUBLISH TO AN ALTERNATIVE
# PYPI REGISTRY THEN ENSURE THE PYPI_REPOSITORY_URL IS SET. IF YOU ARE USING AN API_TOKEN THEN
# YOU DO NOT NEED TO CHANGE THE PYPI_USERNAME (__token__) , IF YOU ARE USING PASSWORD AUTHENTICATION THEN YOU WILL
# NEED TO CHANGE TO USE THE CORRECT PASSWORD
PYPI_PASSWORD: ${{ YOUR PYPI PASSWORD HERE }}
PYPI_USERNAME: "YOUR PYPI USERNAME HERE"
PYPI_REPOSITORY_URL: ""

PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
PYPI_USERNAME: "__token__"
PYPI_REPOSITORY_URL: "https://github.com/SimCubeLtd/pulumi-onepassword"
PUBLISH_PYPI: true
jobs:
publish_binary:
Expand Down Expand Up @@ -133,4 +125,4 @@ jobs:
nodeversion:
- 14.x
pythonversion:
- "3.9"
- "3.9"
9 changes: 4 additions & 5 deletions deployment-templates/.goreleaser.yml → .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ before:
hooks:
- make tfgen
builds:
- binary: provider-resource-xyz
- binary: provider-resource-onepassword
dir: provider
env:
- CGO_ENABLED=0
Expand All @@ -17,13 +17,12 @@ builds:
- windows
- linux
ldflags:
# The line below MUST align with the module in current provider/go.mod
- -X github.com/your-org-name/pulumi-xyz/provider/pkg/version.Version={{.Tag }}
main: ./cmd/pulumi-resource-xyz/
- -X github.com/SimCubeLtd/pulumi-onepassword/provider/pkg/version.Version={{.Tag }}
main: ./cmd/pulumi-resource-onepassword/
changelog:
skip: true
release:
disable: false
prerelease: auto
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT'
name_template: '{{ .Tag }}-SNAPSHOT'
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CHANGELOG
=========

## HEAD (Unreleased)
# v1.0.0
### [2022-06-12]

---
* Initial Release, Built from the 1Password Terraform Provider: https://github.com/1Password/terraform-provider-onepassword
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PROJECT_NAME := xyz Package
PROJECT_NAME := onepassword Package

SHELL := /bin/bash
PACK := xyz
ORG := pulumi
PACK := onepassword
ORG := SimCubeLtd
PROJECT := github.com/${ORG}/pulumi-${PACK}
NODE_MODULE_NAME := @pulumi/${PACK}
TF_NAME := ${PACK}
Expand All @@ -29,13 +29,13 @@ prepare::
mv "provider/cmd/pulumi-resource-x${EMPTY_TO_AVOID_SED}yz" provider/cmd/pulumi-resource-${NAME}

if [[ "${OS}" != "Darwin" ]]; then \
sed -i 's,github.com/pulumi/pulumi-xyz,${REPOSITORY},g' provider/go.mod; \
sed -i 's,github.com/SimCubeLtd/pulumi-onepassword,${REPOSITORY},g' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i 's/[x]yz/${NAME}/g' {} \; &> /dev/null; \
fi

# In MacOS the -i parameter needs an empty string to execute in place.
if [[ "${OS}" == "Darwin" ]]; then \
sed -i '' 's,github.com/pulumi/pulumi-xyz,${REPOSITORY},g' provider/go.mod; \
sed -i '' 's,github.com/SimCubeLtd/pulumi-onepassword,${REPOSITORY},g' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i '' 's/[x]yz/${NAME}/g' {} \; &> /dev/null; \
fi

Expand Down Expand Up @@ -122,5 +122,4 @@ install_nodejs_sdk::
install_sdks:: install_dotnet_sdk install_python_sdk install_nodejs_sdk

test::
cd examples && go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h

cd examples && go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h
56 changes: 0 additions & 56 deletions README-PROVIDER.md

This file was deleted.

Loading

0 comments on commit 4096e89

Please sign in to comment.