Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Sep 30, 2024
1 parent 23f484e commit 4fdcdbd
Show file tree
Hide file tree
Showing 24 changed files with 12,709 additions and 8,173 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/create-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build pull request
on:
pull_request:
types: [opened, synchronize]
jobs:
build-pull-request:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/setup-node@v1 #this installs node and npm for us
with:
node-version: "10.x"
# Build the Angular application to the dist folder
- name: Build Angular application
run: |
cd kerberos.ng
npm install
npm run build
# Build the Docker image with the latest tag and the release tag
- name: Build Docker image
run: |
docker build -t uugai/kerberos-documentation:latest .
53 changes: 53 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create a new release
on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
description: "Tag for the Docker image"
required: true
default: "test"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build the Docker image with the latest tag and the release tag
- name: Build and push Docker image with latest tag
uses: docker/build-push-action@v2
if: github.event.inputs.tag != 'test'
with:
context: .
push: true
tags: uugai/kerberos-documentation:latest
- name: Build and push Docker image with release tag
uses: docker/build-push-action@v2
if: github.event.inputs.tag != 'test'
with:
context: .
push: true
tags: uugai/kerberos-documentation:${{ github.event.inputs.tag || github.ref_name }}
# After we build the Docker image, we create a pull request to update the GitOps repository
# This will allow us to update the Helm chart with the new Docker image tag.
- name: Create GitOps Pull Request
uses: cedricve/gitops-pullrequest-action@master
with:
github-token: ${{ secrets.TOKEN }}
gitops-repo: "uug-ai/gitops"
gitops-file: "environments/staging/doc.kerberos.io/deployment.yaml"
gitops-pr-branch: "release-kerberos-documentation-${{ github.event.inputs.tag || github.ref_name }}"
gitops-key: ".spec.template.spec.containers[0].image"
gitops-value: "uugai/kerberos-documentation:${{ github.event.inputs.tag || github.ref_name }}"
commit-email: "[email protected]"
commit-name: "GitOps - UUG.AI"
commit-message: "A new release for Kerberos documentation - ${{ github.event.inputs.tag || github.ref_name }}"
28 changes: 0 additions & 28 deletions .github/workflows/docker.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/gh-pages.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/pr-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Autofill PR description

on: pull_request

jobs:
openai-pr-description:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Autofill PR description if empty using OpenAI
uses: cedricve/azureopenai-pr-description@master
with:
github_token: ${{ secrets.TOKEN }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }}
azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }}
overwrite_description: true
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/documentation.iml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/encodings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 7 additions & 1 deletion config/_default/menus.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[[docs]]
name = "Prologue"
weight = 10
weight = 9
identifier = "prologue"
url = "/prologue/"

[[machinelearning]]
name = "Machine learning"
weight = 10
identifier = "machinelearning"
url = "/machinelearning/"

[[agent]]
name = "Agent"
weight = 11
Expand Down
9 changes: 9 additions & 0 deletions content/machinelearning/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Machine learning"
description: ""
lead: ""
date: 2020-10-06T08:49:15+00:00
lastmod: 2020-10-06T08:49:15+00:00
draft: false
images: []
---
Loading

0 comments on commit 4fdcdbd

Please sign in to comment.