Skip to content

Commit dc63f42

Browse files
authored
feat: update workflows and configurations for maintenance and node version (MAPCO-9820) (#19)
* feat: update workflows and configurations for maintenance and node version upgrade * fix: ensure proper formatting and consistency in code style * fix: switch base image from alpine to slim for apt-get * refactor: modify build and push workflow name * fix: update authorization header formatting in reloadGeoServer function
1 parent df422de commit dc63f42

14 files changed

+249
-98
lines changed

.github/dependabot.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
2+
version: 2
3+
updates:
4+
# deps
5+
- package-ecosystem: npm
6+
target-branch: 'master'
7+
schedule:
8+
interval: weekly
9+
allow:
10+
- dependency-type: production
11+
directory: /
12+
commit-message:
13+
prefix: 'deps'
14+
groups:
15+
map-colonies:
16+
patterns:
17+
- '@map-colonies/*'
18+
patch:
19+
update-types:
20+
- patch
21+
# dev-deps
22+
- package-ecosystem: npm
23+
schedule:
24+
interval: weekly
25+
allow:
26+
- dependency-type: development
27+
directory: /
28+
commit-message:
29+
prefix: 'devdeps'
30+
groups:
31+
map-colonies:
32+
patterns:
33+
- '@map-colonies/*'
34+
dev-patch:
35+
update-types:
36+
- patch
37+
38+
# github deps
39+
- package-ecosystem: github-actions
40+
schedule:
41+
interval: weekly
42+
commit-message:
43+
prefix: 'ci'
44+
directory: '/'
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build and push artifacts
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build_and_push:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Artifactory Login
13+
uses: MapColonies/shared-workflows/actions/artifactory-login@artifactory-login-v1.0.0
14+
with:
15+
registry: ${{ secrets.ACR_URL }}
16+
username: ${{ secrets.ACR_PUSH_USER }}
17+
password: ${{ secrets.ACR_PUSH_TOKEN }}
18+
19+
- name: Build Docker Image
20+
id: build
21+
uses: MapColonies/shared-workflows/actions/build-docker@build-docker-v1.1.0
22+
with:
23+
domain: raster
24+
registry: ${{ secrets.ACR_URL }}
25+
26+
- name: Push Docker Image
27+
uses: MapColonies/shared-workflows/actions/push-docker@push-docker-v1.0.1
28+
with:
29+
image_name: ${{ steps.build.outputs.docker_image_full_name }}
30+
image_tag: ${{ steps.build.outputs.docker_image_tag }}
31+
32+
- name: Build and Push Helm Chart
33+
uses: MapColonies/shared-workflows/actions/build-and-push-helm@build-and-push-helm-v1.0.1
34+
with:
35+
context: ./helm
36+
domain: raster
37+
registry: ${{ secrets.ACR_URL }}
38+
39+
- name: Update Artifacts File- Docker
40+
uses: MapColonies/shared-workflows/actions/update-artifacts-file@update-artifacts-file-v1.1.1
41+
with:
42+
domain: raster
43+
artifact_name: ${{ github.event.repository.name }}
44+
artifact_tag: ${{ github.ref_name }}
45+
type: docker
46+
registry: ${{ secrets.ACR_URL }}
47+
github_token: ${{ secrets.GH_PAT }}
48+
49+
- name: Update Artifacts File- Helm
50+
uses: MapColonies/shared-workflows/actions/update-artifacts-file@update-artifacts-file-v1.1.1
51+
with:
52+
domain: raster
53+
artifact_name: ${{ github.event.repository.name }}
54+
artifact_tag: ${{ github.ref_name }}
55+
type: helm
56+
registry: ${{ secrets.ACR_URL }}
57+
github_token: ${{ secrets.GH_PAT }}

.github/workflows/build_and_push.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: pull_request
2+
on: [pull_request]
3+
4+
jobs:
5+
eslint:
6+
name: Run JS Project eslint
7+
runs-on: ubuntu-latest
8+
strategy: &node-strategy
9+
matrix:
10+
node: [24.x]
11+
12+
steps:
13+
- name: Run JS Project linters
14+
uses: MapColonies/shared-workflows/actions/eslint@eslint-v1.0.1
15+
with:
16+
node_version: ${{ matrix.node }}
17+
18+
helm-lint:
19+
name: Run Helm lint Check
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Check out JS Project Git repository
24+
uses: actions/checkout@v6
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Helm Lint Checks
29+
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1
30+
31+
build_docker_image:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Build Docker image
35+
uses: docker/build-push-action@v6

.github/workflows/release-on-tag-push.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
token: ${{ secrets.GH_PAT }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v24

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.1.6"
3+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-slim
1+
FROM node:24.0.0-slim
22

33
RUN apt-get -y update && apt-get -y install rsync && apt-get -y install curl
44

helm/values.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,14 @@ sideCar:
164164

165165
featureTypesBlackLists:
166166
tableNamesRegex:
167-
- '.*_parts'
167+
- '.*_history$'
168+
- '.*_valid$'
168169
tableNameStrings:
169-
- migrations
170-
- parts
171-
- polygon_parts
170+
- migrations
171+
- history
172+
- polygon_parts
173+
- base_parts
174+
- validation_parts
172175

173176
nginx:
174177
enabled: true

0 commit comments

Comments
 (0)