Skip to content
5 changes: 3 additions & 2 deletions .github/workflows/graphemes_api_build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: Build and push graphemes-api image

# Limit GITHUB_TOKEN permissions to only read repo contents.
# Limit GITHUB_TOKEN permissions
permissions:
contents: read
contents: read # Read the repo contents
packages: write # Push built image to GitHub Container Registry

on:
push:
Expand Down
4 changes: 4 additions & 0 deletions graphemes-api/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# graphemes-api

This folder contains an in-development Express.js API for graphemes/confusables.

## Build

See [graphemes_api_build.yaml](../.github/workflows/graphemes_api_build.yaml).
18 changes: 1 addition & 17 deletions graphemes-api/openshift/dev/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,20 @@ metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: "*"
app.openshift.io/route-disabled: "false"
deployment.kubernetes.io/revision: "1"
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"graphemes-api:dev","namespace":"f343b4-tools"},"fieldPath":"spec.template.spec.containers[?(@.name==\"graphemes-api\")].image","paused":"false"}]'
openshift.io/generated-by: OpenShiftWebConsole
spec:
replicas: 2
selector:
matchLabels:
app: graphemes-api
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- graphemes-api
from:
kind: ImageStreamTag
name: graphemes-api:dev
namespace: f343b4-tools
template:
metadata:
creationTimestamp: null
labels:
app: graphemes-api
deployment: graphemes-api
annotations:
openshift.io/generated-by: OpenShiftWebConsole
spec:
containers:
- name: graphemes-api
image: "image-registry.openshift-image-registry.svc:5000/f343b4-tools/graphemes-api:dev"
image: ghcr.io/bcgov/standard-graphemes/graphemes-api:dev
ports:
- containerPort: 3000
protocol: TCP
Expand Down