Skip to content

Commit

Permalink
add deployment documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkrueck committed Mar 20, 2024
1 parent b0b06fa commit 4c91181
Show file tree
Hide file tree
Showing 16 changed files with 3,241 additions and 3,726 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- go
# - dotnet
goversion:
- 1.21.x
- 1.22.x
nodeversion:
- 20.x
pythonversion:
Expand Down
6 changes: 6 additions & 0 deletions Deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Deployment

1. Update the version in the `Makefile` file, e.g. `vX.Y.Z`.
2. Run `make build` to build the binaries and SDKs locally.
3. Create a new release on GitHub with a tag `vX.Y.Z` and `sdk/vX.Y.Z`. Make sure to only tag `vX.Y.Z` as latest.
4. The release action will be automatically triggered by the tag and will publish the binaries and SDKs to the GitHub release.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version
TFGEN := pulumi-tfgen-${PACK}
PROVIDER := pulumi-resource-${PACK}

VERSION := v0.0.7
VERSION := v0.0.8

TESTPARALLELISM := 4

Expand Down
465 changes: 0 additions & 465 deletions README-repo-setup.md

This file was deleted.

26 changes: 0 additions & 26 deletions deployment-templates/README-DEPLOYMENT.md

This file was deleted.

Binary file removed examples/instance/go/go
Binary file not shown.
4 changes: 1 addition & 3 deletions examples/instance/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ module github.com/genesiscloud/pulumi-genesiscloud/examples/instance/go
go 1.22.1

require (
github.com/genesiscloud/pulumi-genesiscloud/sdk v0.0.6
github.com/genesiscloud/pulumi-genesiscloud/sdk v0.0.7
github.com/pulumi/pulumi/sdk/v3 v3.111.1
)

replace github.com/genesiscloud/pulumi-genesiscloud/sdk => ../../../sdk

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions examples/instance/go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FM
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/genesiscloud/pulumi-genesiscloud/sdk v0.0.7 h1:TVDDguNthNocg7pt27cpPCc1Dkree8+tnGO8R4wy5pA=
github.com/genesiscloud/pulumi-genesiscloud/sdk v0.0.7/go.mod h1:V4Kfzb5o4c0fbsJMF5KdmftS2DsZ+jQAe1loI+PTP4o=
github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
Expand Down
4 changes: 2 additions & 2 deletions examples/instance/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
region := "ARC-IS-HAF-1"

sshKey, sshKeyErr := genesiscloud.NewSSHKey(ctx, "philip", &genesiscloud.SSHKeyArgs{
PublicKey: pulumi.String("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0EyNBL6fu1IPhWLvO6njP6/cEWYCMCv/uTBQgdSM7Q barista@roastery"),
sshKey, sshKeyErr := genesiscloud.NewSSHKey(ctx, "ssh-key", &genesiscloud.SSHKeyArgs{
PublicKey: pulumi.String("<your SSH public key>"),
})
if sshKeyErr != nil {
return sshKeyErr
Expand Down
14 changes: 3 additions & 11 deletions examples/instance/py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@

region = "ARC-IS-HAF-1"

# const sshKey = new SSHKey("philip", {
# name: "philip",
# publicKey:
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0EyNBL6fu1IPhWLvO6njP6/cEWYCMCv/uTBQgdSM7Q barista@roastery",
# });

ssh_key = gc.SSHKey(
"philip",
name="philip",
public_key="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0EyNBL6fu1IPhWLvO6njP6/cEWYCMCv/uTBQgdSM7Q barista@roastery",
"ssh-key",
name="ssh-key",
public_key="<your SSH public key>",
)

floating_ip = gc.FloatingIp(
Expand Down Expand Up @@ -80,5 +74,3 @@
floating_ip_id=floating_ip.id,
)

# pulumi.export("ssh_key", ssh_key.public_key)
# pulumi.export("floating_ip", floating_ip.ip_address)
2 changes: 1 addition & 1 deletion examples/instance/py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi>=3.0.0,<4.0.0
pulumi-genesiscloud>=0.0.5,<0.0.6
pulumi-genesiscloud>=0.0.7,<0.0.8
7 changes: 3 additions & 4 deletions examples/instance/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import {

const region = "ARC-IS-HAF-1";

const sshKey = new SSHKey("philip", {
name: "philip",
publicKey:
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0EyNBL6fu1IPhWLvO6njP6/cEWYCMCv/uTBQgdSM7Q barista@roastery",
const sshKey = new SSHKey("ssh-key", {
name: "ssh-key",
publicKey: "<your SSH public key>",
});

const floatingIP = new FloatingIp("my-pulumi-floating-ip", {
Expand Down
Loading

0 comments on commit 4c91181

Please sign in to comment.