Support base64url access for challenges; adjust legacy credential for… #33
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 Examples | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
outputs: | |
image: ${{ steps.build.outputs.server-tag }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Log in to docker | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build images | |
id: build | |
uses: firehed/multistage-docker-build-action@v1 | |
with: | |
repository: ghcr.io/firehed/webauthn-php | |
server-stage: examples | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
env: | |
KUBECONFIG: ${{ github.workspace }}/__kubeconfig_tmp__ | |
needs: | |
- build | |
steps: | |
- name: Auth to cluster | |
run: echo ${{ secrets.LINODE_KUBECONFIG }} | base64 -d > $KUBECONFIG | |
- name: Deploy | |
uses: Firehed/[email protected] | |
with: | |
namespace: webauthn-demo-ericstern-com | |
deployment: http | |
container: http | |
image: ${{ needs.build.outputs.image }} | |
url: https://webauthn-demo.ericstern.com | |
environment: production | |
production: true # User-accessible | |
transient: false # Permanent | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ref: ${{ github.event.inputs.ref }} |