-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
12,709 additions
and
8,173 deletions.
There are no files selected for viewing
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
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 . |
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
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 }}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
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
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
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: [] | ||
--- |
Oops, something went wrong.