1 Commits
Author SHA1 Message Date
renovate 3c83b80d15 fix(deps): update module google.golang.org/api to v0.302.0
renovate/stability-days Updates have met minimum release age requirement
geo-service / build (pull_request) Successful in 1m58s
geo-service / deploy-prod (pull_request) Skipped
2026-10-16 00:08:52 +00:00
7 changed files with 24 additions and 59 deletions

No files matched your search

+4 -18
View File
@@ -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/master'
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
View File
@@ -1,4 +1,4 @@
FROM amd64/golang:1.27.3@sha256:806880ee211370bb7d6c3b665d2d27357425116282b4c643e297b74655eb6f05 as builder
FROM amd64/golang:1.27.2@sha256:9e036bef9c3cd035cae4aeff523b3997c3c8aa993b13d112a71ea90143e87e48 as builder
WORKDIR /src
COPY * ./
RUN go get
+1 -1
View File
@@ -5,7 +5,7 @@ go 1.26.0
require (
cloud.google.com/go/maps v1.43.0
github.com/caarlos0/env v3.5.0+incompatible
google.golang.org/api v0.304.0
google.golang.org/api v0.302.0
google.golang.org/genproto v0.0.0-20261012220534-4341edf3f941
google.golang.org/grpc v1.84.0
googlemaps.github.io/maps v1.7.0
+2 -2
View File
@@ -164,8 +164,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4=
gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E=
google.golang.org/api v0.304.0 h1:2R1dYSiIVQRGcKN901u9yPFEdJu5h90oGY5X4TcgbmA=
google.golang.org/api v0.304.0/go.mod h1:dcjRWAy1QdjGb3Z67Qu0gdBWH2gL8Qoy/RI2ZVuvdeE=
google.golang.org/api v0.302.0 h1:/eENsEv3+GE0QiEmXjdaLI84Mt76LNjGz4vp4E7sRVw=
google.golang.org/api v0.302.0/go.mod h1:dcjRWAy1QdjGb3Z67Qu0gdBWH2gL8Qoy/RI2ZVuvdeE=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+2 -16
View File
@@ -21,13 +21,6 @@ spec:
labels:
app.kubernetes.io/name: geo-service
spec:
imagePullSecrets:
- name: oci-registry
securityContext:
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
@@ -42,10 +35,6 @@ spec:
topologyKey: kubernetes.io/hostname
containers:
- name: geo-service
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
resources:
limits:
memory: "100Mi"
@@ -54,11 +43,8 @@ spec:
imagePullPolicy: Always
image: ${IMAGE}
ports:
- containerPort: 8080
- containerPort: 80
name: http
env:
- name: PORT
value: "8080"
envFrom:
- secretRef:
name: geo-service
@@ -73,7 +59,7 @@ spec:
- port: 80
name: http
protocol: TCP
targetPort: 8080
targetPort: 80
selector:
app.kubernetes.io/name: geo-service
type: ClusterIP
-21
View File
@@ -1,21 +0,0 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: geo-service
spec:
refreshInterval: 1h
# The namespace's store (infra frostmoln/production/apps.tf); MAPS_API_KEY
# lives in the Frostmoln Secret "dancefinder", next to the API's settings
# (infra frostmoln/production/scripts/seed-app.sh).
secretStoreRef:
name: frostmoln
kind: SecretStore
target:
name: geo-service
template:
engineVersion: v2
data:
MAPS_API_KEY: "{{ .MAPS_API_KEY }}"
dataFrom:
- extract:
key: dancefinder
+14
View File
@@ -0,0 +1,14 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: geo-service
spec:
refreshInterval: 1h
secretStoreRef:
name: external-secrets
kind: ClusterSecretStore
target:
creationPolicy: Owner
dataFrom:
- extract:
key: applications/dancefinder/geo-service