Skip to content

Commit

Permalink
Add demo release
Browse files Browse the repository at this point in the history
  • Loading branch information
gkapkowski committed Mar 17, 2023
1 parent 4ded870 commit 162f139
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:


jobs:
helm-release:
release-login:
runs-on: ubuntu-latest
environment: Prod (do-sfo2-cryptoverse)
steps:
Expand All @@ -28,16 +28,16 @@ jobs:
with:
version: v3.4.0

############################
# Cryptoverse Login Relase #
############################
#############################
# Cryptoverse Login Release #
#############################
- name: Install Cryptoverse Login
run: |
gpg --quiet --batch --yes --decrypt \
--passphrase="${{ secrets.VALUES_ENCRYPTION_PASSPHRASE }}" \
--output ./charts/login/values.prod.yaml ./charts/login/values.prod.yaml.gpg
doctl kubernetes cluster kubeconfig save cryptoverse --expiry-seconds 300 --set-current-context
helm upgrade --install --atomic --wait --timeout 10m \
helm upgrade --install --create-namespace --atomic --wait --timeout 10m \
cryptoverse-login \
./charts/login/ \
--namespace cryptoverse-login \
Expand All @@ -47,3 +47,36 @@ jobs:
run: |
sleep 60s
curl https://${DOMAIN_LOGIN}/.well-known/openid-configuration -vk
release-login-demo:
runs-on: ubuntu-latest
environment: Prod (do-sfo2-cryptoverse)
steps:
- uses: actions/checkout@v2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Log in to DO Container Registry
run: doctl registry login --expiry-seconds 1200
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.4.0

##################################
# Cryptoverse Login Demo Release #
##################################
- name: Install Cryptoverse Login Demo
run: |
cd tests/cryptoverse-login-demo/
gpg --quiet --batch --yes --decrypt \
--passphrase="${{ secrets.VALUES_ENCRYPTION_PASSPHRASE_LOGIN_DEMO }}" \
--output ./charts/demo/values.prod.yaml ./charts/demo/values.prod.yaml.gpg
doctl kubernetes cluster kubeconfig save cryptoverse --expiry-seconds 300 --set-current-context
helm upgrade --install --create-namespace --atomic --wait --timeout 10m \
cryptoverse-login-demo \
./charts/demo/ \
--namespace cryptoverse-login-demo \
-f ./charts/demo/values.prod.yaml \
--set version=${{ github.sha }}
1 change: 1 addition & 0 deletions tests/cryptoverse-login-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
.mypy_cache
2 changes: 1 addition & 1 deletion tests/cryptoverse-login-demo/charts/demo/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
values-*
values.prod.yaml
4 changes: 4 additions & 0 deletions tests/cryptoverse-login-demo/charts/demo/encrypt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
BASEDIR=$(dirname "$0")
PASS=$1
echo "${PASS}" | gpg --batch --symmetric --cipher-algo AES256 --passphrase-fd 0 ${BASEDIR}/values.prod.yaml
Binary file not shown.

0 comments on commit 162f139

Please sign in to comment.