Skip to content

Commit

Permalink
Update frontend (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog authored Jun 29, 2024
2 parents 096ea61 + 277ac84 commit 01eabe5
Show file tree
Hide file tree
Showing 18 changed files with 1,416 additions and 112 deletions.
91 changes: 46 additions & 45 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,51 @@ concurrency:

env:
REGISTRY: ghcr.io
IMAGE_NAME: "minbzk/ai-act-decisiontree"
IMAGE_NAME: "minbzk/ai-act-beslisboom"

jobs:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
actions: read
steps:
- uses: actions/checkout@v4

# for testing we copy it. In production we should use a link to github
- name: copy files
run: |
cp decision-tree.yaml frontend/public/decision-tree.yaml
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
platforms: linux/amd64,linux/arm64,darwin/amd64
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
actions: read
steps:
- uses: actions/checkout@v4

# for testing we copy it. In production we should use a link to github
- name: copy files
run: |
cp decision-tree.yaml frontend/public/decision-tree.yaml
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
platforms: linux/amd64,linux/arm64,darwin/amd64
5 changes: 5 additions & 0 deletions frontend/nginx.htpasswd
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
ruth:$apr1$V6Ei6xCR$.tfy/6fU8NP1P9Y.dbvg01
robbert.bos:$2a$13$PAVn0BSbPgI7AUcFyJBzEuGdKvh5/4SE88QzZ/95AuXCty5cY99XK
berry.den.hartog:$apr1$8u/rX7BG$NxOcwhy1Xf3jd4OjDsBdY.
anne.schuth:$apr1$udgyDicB$rirjDC3Y6LyqYHtBOMlZB.
ruben.rouwhof:$apr1$YhMd9Dd1$.31S5RI.N.mUBCdFgAzTD.
pilaar1aiact:$apr1$E8ES/Pxs$a0azF/1rBdMda4URHfOa80
algoritmekader:$apr1$ZsprjAzn$MlkMyd08S5aBrrXR8u3.u.
Loading

0 comments on commit 01eabe5

Please sign in to comment.