Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI


on:
push:
branches:
- main
pull_request:

jobs:
build:
Expand Down Expand Up @@ -35,27 +35,33 @@ jobs:
- 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 .
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

- name: Test Docker image
run: bash ./test-docker.sh
8 changes: 0 additions & 8 deletions test-docker.sh

This file was deleted.