Compare commits
1
Commits
main
..
2ff6de47d5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ff6de47d5 |
No files matched your search
@@ -18,30 +18,16 @@ jobs:
|
||||
- name: Build and push
|
||||
run: unset GITEA_TOKEN && build && push
|
||||
|
||||
deploy-prod-frostmoln:
|
||||
deploy-prod:
|
||||
needs: build
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_FROSTMOLN_PRODUCTION }}
|
||||
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
FM_TENANT: 9ae61342-0f76-476f-8176-e46f6b0b0c32
|
||||
environment: prod
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: buildtool/setup-buildtools-action@v1
|
||||
- name: Install fm
|
||||
run: |
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
sudo curl -fsSL -o /etc/apt/keyrings/frostmoln.gpg https://get.frostmoln.cloud/deb/frostmoln.gpg
|
||||
sudo curl -fsSL -o /etc/apt/sources.list.d/frostmoln.sources https://get.frostmoln.cloud/deb/frostmoln.sources
|
||||
sudo apt-get update && sudo apt-get install -y fm
|
||||
- name: Deploy to Frostmoln production
|
||||
env:
|
||||
FROSTMOLN_API_KEY: ${{ secrets.FROSTMOLN_PRODUCTION_DEPLOY_KEY }}
|
||||
# The cluster API is private: the kubeconfig's exec plugin opens an fm
|
||||
# tunnel on demand. fm reads the key from its config file, not the env.
|
||||
run: |
|
||||
fm auth api-key set "$FROSTMOLN_API_KEY" > /dev/null
|
||||
fm kubernetes cluster kubeconfig ${{ vars.FROSTMOLN_PRODUCTION_CLUSTER_ID }} --exec --file "$RUNNER_TEMP/kubeconfig"
|
||||
KUBECONFIG_CONTENT="$(cat "$RUNNER_TEMP/kubeconfig")" deploy prod-frostmoln -n dancefinder
|
||||
- name: Deploy
|
||||
run: deploy prod
|
||||
+1
-1
@@ -12,7 +12,7 @@ COPY . /build
|
||||
RUN npm run postinstall && npm run generate && npm run lint
|
||||
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
||||
|
||||
FROM nginxinc/nginx-unprivileged:1.31.7@sha256:94193d5c4c5df716f412bb08eb97956d98fe6b59886f0bc57d6d3a3402a88a02
|
||||
FROM amd64/nginx:1.31.3@sha256:1f1cd3af9bef5157e6f3956669aa67b4699ee21e7c6f4d7e749b86a01647ad96
|
||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||
|
||||
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
||||
|
||||
File renamed without changes.
+5
-15
@@ -22,13 +22,6 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: dancefinder-app
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: oci-registry
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 101
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
@@ -43,21 +36,17 @@ spec:
|
||||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- name: dancefinder-app
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
imagePullPolicy: Always
|
||||
image: ${IMAGE}
|
||||
image: oci.unbound.se/dancefinder/dancefinder-app:${COMMIT}
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
@@ -75,8 +64,9 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: dancefinder-app
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app.kubernetes.io/name: dancefinder-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
targetPort: 80
|
||||
@@ -1,20 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: dancefinder-app
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: "dancefinder.unbound.se"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: dancefinder-app
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,29 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: dancefinder-app-ingress
|
||||
annotations:
|
||||
alb.ingress.kubernetes.io/group.name: "default"
|
||||
alb.ingress.kubernetes.io/group.order: "101"
|
||||
alb.ingress.kubernetes.io/scheme: internet-facing
|
||||
alb.ingress.kubernetes.io/target-type: instance
|
||||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS": 443}]'
|
||||
alb.ingress.kubernetes.io/ssl-redirect: "443"
|
||||
alb.ingress.kubernetes.io/healthcheck-path: "/health"
|
||||
alb.ingress.kubernetes.io/healthcheck-interval-seconds: "30"
|
||||
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: "5"
|
||||
alb.ingress.kubernetes.io/healthy-threshold-count: "2"
|
||||
alb.ingress.kubernetes.io/unhealthy-threshold-count: "2"
|
||||
spec:
|
||||
ingressClassName: "alb"
|
||||
rules:
|
||||
- host: "dancefinder.unbound.se"
|
||||
http:
|
||||
paths:
|
||||
- path: /*
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: dancefinder-app
|
||||
port:
|
||||
number: 80
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: dancefinder-app
|
||||
spec:
|
||||
minAvailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: dancefinder-app
|
||||
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 8080;
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
sendfile off;
|
||||
charset utf-8;
|
||||
|
||||
Generated
+4796
-5162
File diff suppressed because it is too large.
Load diff
+27
-27
@@ -16,48 +16,48 @@
|
||||
"codegen": "graphql-codegen && eslint graphql/generated/operations.ts --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "21.2.3",
|
||||
"@commitlint/config-conventional": "21.2.3",
|
||||
"@graphql-codegen/cli": "7.4.6",
|
||||
"@commitlint/cli": "21.2.1",
|
||||
"@commitlint/config-conventional": "21.2.0",
|
||||
"@graphql-codegen/cli": "7.2.0",
|
||||
"@graphql-codegen/fragment-matcher": "7.1.0",
|
||||
"@graphql-codegen/typescript": "6.1.2",
|
||||
"@graphql-codegen/typescript-operations": "6.1.10",
|
||||
"@graphql-codegen/typescript": "6.1.0",
|
||||
"@graphql-codegen/typescript-operations": "6.1.1",
|
||||
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
|
||||
"@nuxt/devtools": "3.4.2",
|
||||
"@nuxt/eslint": "1.17.0",
|
||||
"@nuxtjs/i18n": "10.6.0",
|
||||
"@nuxt/devtools": "3.2.4",
|
||||
"@nuxt/eslint": "1.16.0",
|
||||
"@nuxtjs/i18n": "10.4.1",
|
||||
"@stylistic/eslint-plugin": "5.10.0",
|
||||
"@vue/test-utils": "2.5.1",
|
||||
"esbuild": "0.28.2",
|
||||
"eslint": "10.12.0",
|
||||
"@vue/test-utils": "2.4.11",
|
||||
"esbuild": "0.28.1",
|
||||
"eslint": "10.7.0",
|
||||
"eslint-plugin-simple-import-sort": "14.0.0",
|
||||
"eslint-plugin-vue": "10.11.1",
|
||||
"nuxt": "4.6.1",
|
||||
"postcss-html": "2.0.0",
|
||||
"sass": "1.105.1",
|
||||
"stylelint": "17.16.0",
|
||||
"stylelint-config-recommended-vue": "2.0.0",
|
||||
"eslint-plugin-vue": "10.10.0",
|
||||
"nuxt": "4.5.0",
|
||||
"postcss-html": "1.8.1",
|
||||
"sass": "1.101.0",
|
||||
"stylelint": "17.14.1",
|
||||
"stylelint-config-recommended-vue": "1.6.1",
|
||||
"stylelint-config-standard": "40.0.0",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "8.71.2",
|
||||
"typescript": "7.0.2",
|
||||
"typescript-eslint": "8.65.0",
|
||||
"vite-plugin-vuetify": "2.1.3",
|
||||
"vue": "3.5.44",
|
||||
"vue": "3.5.40",
|
||||
"vue-eslint-parser": "10.4.1",
|
||||
"vue-router": "5.4.0",
|
||||
"vuetify": "4.2.4"
|
||||
"vue-router": "5.2.0",
|
||||
"vuetify": "4.1.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "3.14.1",
|
||||
"@auth0/auth0-vue": "2.11.0",
|
||||
"@grafana/faro-web-sdk": "2.12.1",
|
||||
"@grafana/faro-web-tracing": "2.12.1",
|
||||
"@auth0/auth0-vue": "2.9.0",
|
||||
"@grafana/faro-web-sdk": "2.8.2",
|
||||
"@grafana/faro-web-tracing": "2.8.2",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@pinia/nuxt": "1.0.2",
|
||||
"@pinia/nuxt": "0.11.3",
|
||||
"@vue/apollo-composable": "4.2.2",
|
||||
"date-fns": "4.4.0",
|
||||
"graphql": "16.14.2",
|
||||
"graphql-tag": "2.12.7",
|
||||
"pinia": "4.0.3",
|
||||
"pinia": "3.0.4",
|
||||
"pinia-plugin-persistedstate": "4.7.1"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -10,14 +10,6 @@
|
||||
"@grafana/faro-**"
|
||||
]
|
||||
},
|
||||
{
|
||||
"groupName": "pinia",
|
||||
"matchPackageNames": [
|
||||
"pinia",
|
||||
"@pinia/nuxt",
|
||||
"pinia-plugin-persistedstate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"groupName": "stylelint",
|
||||
"matchPackageNames": [
|
||||
|
||||
Reference in new issue
Block a user