Skip to content

Commit

Permalink
Add Pulumi deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon committed Oct 5, 2024
1 parent c08edd2 commit 0a94219
Show file tree
Hide file tree
Showing 7 changed files with 4,165 additions and 30 deletions.
53 changes: 23 additions & 30 deletions .github/workflows/deploy-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
id: version
run: echo VERSION=$(git describe --exact-match --tags | sed 's/^v//') >> $GITHUB_OUTPUT

# uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Install deps
run: npm install

- name: Build container
run: make

- id: auth
name: Authenticate with Google Cloud
Expand All @@ -42,31 +42,24 @@ jobs:
access_token_lifetime: 900s
create_credentials_file: true

- name: Install deps
run: npm install

- name: Build container
run: make
- name: Login to Artifact Registry
uses: docker/login-action@v1
with:
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

# - name: Login to Artifact Registry
# uses: docker/login-action@v1
# with:
# registry: us-central1-docker.pkg.dev
# username: oauth2accesstoken
# password: ${{ steps.auth.outputs.access_token }}

# - name: Install Pulumi
# run: cd pulumi && npm install

# - name: Applying infrastructure πŸš€πŸ™
# uses: pulumi/actions@v3
# with:
# command: up
# stack-name: demo
# work-dir: pulumi
# cloud-url: gs://kalntera-deploy/cybersec-ai/demo
# env:
# PULUMI_CONFIG_PASSPHRASE: ""
# IMAGE_VERSION: ${{ steps.version.outputs.VERSION }}
- name: Install Pulumi
run: cd pulumi && npm install

- name: Applying infrastructure πŸš€πŸ™
uses: pulumi/actions@v3
with:
command: up
stack-name: demo
work-dir: pulumi
cloud-url: gs://trustgraph-deploy/simple-config-ui/demo
env:
PULUMI_CONFIG_PASSPHRASE: ""
IMAGE_VERSION: ${{ steps.version.outputs.VERSION }}

14 changes: 14 additions & 0 deletions pulumi/Pulumi.demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
encryptionsalt: v1:vQGk98eEeYI=:v1:tHg+f1b66tEydgA9:J1RGVNI0FssyjSXVhcKU7bfBofNFTg==
config:
simple-config-ui:artifact-name: simple-config-ui
simple-config-ui:artifact-repo: us-central1-docker.pkg.dev/trustgraph-demo/simple-config-ui
simple-config-ui:artifact-repo-region: us-central1
simple-config-ui:cloud-run-region: us-central1
simple-config-ui:domain: demo.trustgraph.ai
simple-config-ui:environment: demo
simple-config-ui:gcp-project: trustgraph-demo
simple-config-ui:gcp-region: us-central1
simple-config-ui:hostname: simple-config-ui.demo.trustgraph.ai
simple-config-ui:managed-zone: demo
simple-config-ui:max-scale: "2"
simple-config-ui:min-scale: "0"
3 changes: 3 additions & 0 deletions pulumi/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: simple-config-ui
runtime: nodejs
description: Simple config UI
Loading

0 comments on commit 0a94219

Please sign in to comment.