Compare commits
49
Commits
c9534930ae
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4225cff34f | ||
|
|
0d90c8c375 | ||
|
|
2abfd08018 | ||
|
|
7d95911753 | ||
|
|
30ac67e696 | ||
|
|
6c4c99449e | ||
|
|
3a298f0716 | ||
|
|
daf520e68e | ||
|
|
3543439ba6 | ||
|
|
813da68f89 | ||
|
|
0e7338592a | ||
|
|
57a75e2503 | ||
|
|
4ce6d67c47 | ||
|
|
07f113c54b | ||
|
|
6a837266ee | ||
|
|
2f44d2d59b | ||
|
|
9148172dc2 | ||
|
|
7e4d06bb35 | ||
|
|
9d7b474944 | ||
|
|
8870513377 | ||
|
|
0247b308f3 | ||
|
|
f5a23ab848 | ||
|
|
011723d1ab | ||
|
|
ab28310d38 | ||
|
|
0eaeb2dadb | ||
|
|
23ccebb9ba | ||
|
|
1e47bb4606 | ||
|
|
8604928273 | ||
|
|
9bef9fb898 | ||
|
|
cc4da398a3 | ||
|
|
165c834f75 | ||
|
|
d78c801e79 | ||
|
|
bb96f93305 | ||
|
|
9b622c2d6c | ||
|
|
d3aa02a887 | ||
|
|
4a987050fd | ||
|
|
27ea060fb1 | ||
|
|
58973e45bd | ||
|
|
415a516d19 | ||
|
|
719121b669 | ||
|
|
6ec181120a | ||
|
|
f7b04a34ce | ||
|
|
3227a8e5dc | ||
|
|
c48b10f513 | ||
|
|
1776a47a01 | ||
|
|
686ca4f153 | ||
|
|
f49f6860e7 | ||
|
|
d16449b1dd | ||
|
|
ae97cc2449 |
No files matched your search
@@ -18,16 +18,30 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: unset GITEA_TOKEN && build && push
|
run: unset GITEA_TOKEN && build && push
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod-frostmoln:
|
||||||
needs: build
|
needs: build
|
||||||
if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
|
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_FROSTMOLN_PRODUCTION }}
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
FM_TENANT: 9ae61342-0f76-476f-8176-e46f6b0b0c32
|
||||||
environment: prod
|
environment: prod
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: buildtool/setup-buildtools-action@v1
|
- uses: buildtool/setup-buildtools-action@v1
|
||||||
- name: Deploy
|
- name: Install fm
|
||||||
run: deploy prod
|
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
|
||||||
+1
-1
@@ -12,7 +12,7 @@ COPY . /build
|
|||||||
RUN npm run postinstall && npm run generate && npm run lint
|
RUN npm run postinstall && npm run generate && npm run lint
|
||||||
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
||||||
|
|
||||||
FROM amd64/nginx:1.31.5@sha256:e9edb980c805d3c55dfbb73a88bf0340697a6643661757cf656b0d48ca118873
|
FROM nginxinc/nginx-unprivileged:1.31.7@sha256:94193d5c4c5df716f412bb08eb97956d98fe6b59886f0bc57d6d3a3402a88a02
|
||||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||||
|
|
||||||
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
||||||
|
|||||||
File renamed without changes.
+15
-5
@@ -22,6 +22,13 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: dancefinder-app
|
app.kubernetes.io/name: dancefinder-app
|
||||||
spec:
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: oci-registry
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 101
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
@@ -36,17 +43,21 @@ spec:
|
|||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: dancefinder-app
|
- name: dancefinder-app
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 80
|
port: 8080
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: oci.unbound.se/dancefinder/dancefinder-app:${COMMIT}
|
image: ${IMAGE}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 8080
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
@@ -64,9 +75,8 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: dancefinder-app
|
app.kubernetes.io/name: dancefinder-app
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: dancefinder-app
|
app.kubernetes.io/name: dancefinder-app
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 8080
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
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 {
|
server {
|
||||||
listen 80;
|
listen 8080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
sendfile off;
|
sendfile off;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|||||||
Generated
+2909
-1573
File diff suppressed because it is too large.
Load diff
+19
-19
@@ -16,41 +16,41 @@
|
|||||||
"codegen": "graphql-codegen && eslint graphql/generated/operations.ts --fix"
|
"codegen": "graphql-codegen && eslint graphql/generated/operations.ts --fix"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "21.2.2",
|
"@commitlint/cli": "21.2.3",
|
||||||
"@commitlint/config-conventional": "21.2.2",
|
"@commitlint/config-conventional": "21.2.3",
|
||||||
"@graphql-codegen/cli": "7.3.1",
|
"@graphql-codegen/cli": "7.4.6",
|
||||||
"@graphql-codegen/fragment-matcher": "7.1.0",
|
"@graphql-codegen/fragment-matcher": "7.1.0",
|
||||||
"@graphql-codegen/typescript": "6.1.0",
|
"@graphql-codegen/typescript": "6.1.2",
|
||||||
"@graphql-codegen/typescript-operations": "6.1.6",
|
"@graphql-codegen/typescript-operations": "6.1.10",
|
||||||
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
|
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
|
||||||
"@nuxt/devtools": "3.4.2",
|
"@nuxt/devtools": "3.4.2",
|
||||||
"@nuxt/eslint": "1.17.0",
|
"@nuxt/eslint": "1.17.0",
|
||||||
"@nuxtjs/i18n": "10.6.0",
|
"@nuxtjs/i18n": "10.6.0",
|
||||||
"@stylistic/eslint-plugin": "5.10.0",
|
"@stylistic/eslint-plugin": "5.10.0",
|
||||||
"@vue/test-utils": "2.5.0",
|
"@vue/test-utils": "2.5.1",
|
||||||
"esbuild": "0.28.2",
|
"esbuild": "0.28.2",
|
||||||
"eslint": "10.9.1",
|
"eslint": "10.12.0",
|
||||||
"eslint-plugin-simple-import-sort": "14.0.0",
|
"eslint-plugin-simple-import-sort": "14.0.0",
|
||||||
"eslint-plugin-vue": "10.10.0",
|
"eslint-plugin-vue": "10.11.1",
|
||||||
"nuxt": "4.5.2",
|
"nuxt": "4.6.1",
|
||||||
"postcss-html": "2.0.0",
|
"postcss-html": "2.0.0",
|
||||||
"sass": "1.103.1",
|
"sass": "1.105.1",
|
||||||
"stylelint": "17.14.1",
|
"stylelint": "17.16.0",
|
||||||
"stylelint-config-recommended-vue": "2.0.0",
|
"stylelint-config-recommended-vue": "2.0.0",
|
||||||
"stylelint-config-standard": "40.0.0",
|
"stylelint-config-standard": "40.0.0",
|
||||||
"typescript": "7.0.2",
|
"typescript": "6.0.3",
|
||||||
"typescript-eslint": "8.69.0",
|
"typescript-eslint": "8.71.2",
|
||||||
"vite-plugin-vuetify": "2.1.3",
|
"vite-plugin-vuetify": "2.1.3",
|
||||||
"vue": "3.5.42",
|
"vue": "3.5.44",
|
||||||
"vue-eslint-parser": "10.4.1",
|
"vue-eslint-parser": "10.4.1",
|
||||||
"vue-router": "5.3.0",
|
"vue-router": "5.4.0",
|
||||||
"vuetify": "4.1.12"
|
"vuetify": "4.2.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "3.14.1",
|
"@apollo/client": "3.14.1",
|
||||||
"@auth0/auth0-vue": "2.9.0",
|
"@auth0/auth0-vue": "2.11.0",
|
||||||
"@grafana/faro-web-sdk": "2.11.0",
|
"@grafana/faro-web-sdk": "2.12.1",
|
||||||
"@grafana/faro-web-tracing": "2.11.0",
|
"@grafana/faro-web-tracing": "2.12.1",
|
||||||
"@mdi/font": "7.4.47",
|
"@mdi/font": "7.4.47",
|
||||||
"@pinia/nuxt": "1.0.2",
|
"@pinia/nuxt": "1.0.2",
|
||||||
"@vue/apollo-composable": "4.2.2",
|
"@vue/apollo-composable": "4.2.2",
|
||||||
|
|||||||
Reference in new issue
Block a user