Skip to content

cleansing

cleansing #75

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: cd ./site/ && npm install
- name: Build site
run: cd ./site/ && npm run build
env:
VITE_SCIM_TEST_SERVER_URL: ${{ secrets.VITE_SCIM_TEST_SERVER_URL }}
VITE_TURNSTILE_SITE_KEY: ${{ secrets.VITE_TURNSTILE_SITE_KEY }}
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
if: github.ref == 'refs/heads/main'
run: netlify deploy --prod --dir=./site/.vitepress/dist
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Push to dokku
if: github.ref == 'refs/heads/main'
uses: dokku/github-action@master
with:
git_remote_url: "ssh://[email protected]:22/verify"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_push_flags: '--force'
- name: Build image
run: docker build -t scimverify-test .
- name: Authenticate to GHCR
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Push image
if: github.ref == 'refs/heads/main'
run: docker push ghcr.io/${{ github.repository }}:latest