Deploy vc-authn-oidc #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy vc-authn-oidc | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'SHA to deploy' | |
required: false | |
default: 'main' | |
jobs: | |
deploy_dev: | |
name: Deploy to dev | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout acapy-vc-authn-oidc | |
uses: actions/checkout@v4 | |
with: | |
repository: openwallet-foundation/acapy-vc-authn-oidc | |
fetch-depth: 0 | |
ref: ${{ github.event.inputs.ref || '' }} | |
sparse-checkout: | | |
charts | |
path: acapy-vc-authn-oidc | |
- name: Get short SHA | |
id: slug | |
run: | | |
cd acapy-vc-authn-oidc | |
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
# - name: Install OpenShift CLI tools | |
# uses: redhat-actions/openshift-tools-installer@v1 | |
# with: | |
# oc: "4.16" | |
# - name: Authenticate and set context | |
# uses: redhat-actions/oc-login@v1 | |
# with: | |
# openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | |
# openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | |
# certificate_authority_data: ${{ secrets.OPENSHIFT_CA_CRT }} | |
# namespace: ${{ secrets.OPENSHIFT_NAMESPACE }} | |
- name: Get Build Info | |
id: values | |
shell: bash | |
run: | | |
echo "helm upgrade --install vc-authn-oidc -f ./dev-values.yaml --set image.tag=$sha-${{ steps.slug.outputs.SHORT_SHA }}" ./acapy-vc-authn-oidc/charts/vc-authn-oidc --wait" | |
# - name: Deploy vc-authn-oidc to Development | |
# run: | | |
# cp services/vc-authn-oidc/charts/dev/values.yaml ./dev-values.yaml | |
# yq e -i 'del(.vc-authn-oidc) | . *= load("services/vc-authn-oidc/charts/dev/values.yaml").vc-authn-oidc' ./dev-values.yaml | |
# cat ./dev-values.yaml | |
# # helm upgrade --install vc-authn-oidc -f ./dev-values.yaml --set image.tag=${{ steps.meta.outputs.tags }}" ./acapy-vc-authn-oidc/charts/vc-authn-oidc --wait |