diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 784f3f8..e630ddb 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -71,5 +71,5 @@ jobs: push: true allow: network.host network: host - platforms: linux/arm64,linux/amd64 + platforms: linux/amd64 tags: ${{ steps.docker.outputs.tags }} diff --git a/k8/deployment.yaml b/k8/deployment.yaml new file mode 100644 index 0000000..d98d872 --- /dev/null +++ b/k8/deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: silly-game-frontend-deployment + namespace: silly-game +spec: + replicas: 1 + selector: + matchLabels: + app: silly-game-frontend + template: + metadata: + labels: + app: silly-game-frontend + spec: + containers: + - name: silly-game-frontend + image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:main + ports: + - containerPort: 80 + volumeMounts: + - name: config-volume + mountPath: /app/src/environments/environment.ts + subPath: environment.ts + volumes: + - name: config-volume + configMap: + name: silly-game-config + +--- + +apiVersion: v1 +kind: Service +metadata: + name: silly-game-service + namespace: silly-game +spec: + selector: + app: silly-game + ports: + - port: 80 + targetPort: 8080 \ No newline at end of file