Skip to content

Commit c9a9aaf

Browse files
Merge pull request #1737 from InformaticsMatters/dev
2 parents 1e9bdf7 + 6a5e755 commit c9a9aaf

15 files changed

+1843
-308
lines changed

.github/renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"constraints": {
1818
"pnpm": "10"
1919
},
20+
"baseBranches": [
21+
"dev"
22+
],
2023
"packageRules": [
2124
{
2225
"matchPackageNames": [

.github/workflows/build-latest.yaml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/build-stable.yaml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/build-tag.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/release-please.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
fetch-tags: true
22+
ref: ${{ github.ref }}
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10.24.0
28+
run_install: false
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
cache: pnpm
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Release
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
SEMANTIC_RELEASE_DEBUG: true
43+
run: pnpm exec semantic-release
44+
45+
- name: Compute version
46+
run: echo "VERSION=$(git describe --tags --abbrev=0 --match '*')" >> "$GITHUB_ENV"
47+
48+
- name: Login to DockerHub
49+
uses: docker/login-action@v3
50+
with:
51+
username: ${{ secrets.DOCKERHUB_USERNAME }}
52+
password: ${{ secrets.DOCKERHUB_TOKEN }}
53+
54+
- name: Build and push image (version)
55+
uses: docker/build-push-action@v6
56+
with:
57+
push: true
58+
build-args: |
59+
GIT_SHA=${{ github.sha }}
60+
SKIP_CHECKS=1
61+
BASE_PATH=/data-manager-ui
62+
tags: |
63+
informaticsmatters/squonk2-data-manager-ui:${{ env.VERSION }}
64+
65+
- name: Build and push image (stable tag)
66+
if: ${{ !contains(env.VERSION, '-dev.') }}
67+
uses: docker/build-push-action@v6
68+
with:
69+
push: true
70+
build-args: |
71+
GIT_SHA=${{ github.sha }}
72+
SKIP_CHECKS=1
73+
BASE_PATH=/data-manager-ui
74+
tags: |
75+
informaticsmatters/squonk2-data-manager-ui:${{ env.VERSION }}
76+
informaticsmatters/squonk2-data-manager-ui:stable
77+
informaticsmatters/squonk2-data-manager-ui:latest
78+
79+
- name: Trigger AWX test
80+
if: ${{ contains(env.VERSION, '-dev.') }}
81+
uses: informaticsmatters/trigger-awx-action@v2
82+
with:
83+
template: Squonk/2 Data Manager UI -test-
84+
template-host: ${{ secrets.AWX_HOST }}
85+
template-user: ${{ secrets.AWX_USER }}
86+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
87+
template-var: maui_image_tag
88+
template-var-value: ${{ env.VERSION }}
89+
90+
- name: Trigger AWX production
91+
if: ${{ !contains(env.VERSION, '-dev.') }}
92+
uses: informaticsmatters/trigger-awx-action@v1
93+
with:
94+
template: Data Manager UI -production-
95+
template-host: ${{ secrets.AWX_HOST }}
96+
template-user: ${{ secrets.AWX_USER }}
97+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
98+
template-var: maui_image_tag
99+
template-var-value: ${{ env.VERSION }}

.release-please-manifest.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "npm",
66
"script": "tsc",
77
"problemMatcher": [],
8-
"label": "npm: tsc",
8+
"label": "tsc",
99
"detail": "tsc --pretty --noEmit",
1010
"presentation": {
1111
"close": true
@@ -15,17 +15,37 @@
1515
"type": "npm",
1616
"script": "build",
1717
"problemMatcher": [],
18-
"label": "npm: build",
18+
"label": "build",
1919
"detail": "next build",
2020
"presentation": {
2121
"close": true
2222
}
2323
},
24+
{
25+
"type": "npm",
26+
"script": "lint",
27+
"problemMatcher": [],
28+
"label": "lint",
29+
"detail": "eslint --cache --max-warnings=0 .",
30+
"presentation": {
31+
"close": true
32+
}
33+
},
34+
{
35+
"type": "npm",
36+
"script": "format",
37+
"problemMatcher": [],
38+
"label": "format",
39+
"detail": "eslint --fix --cache --max-warnings=0 .",
40+
"presentation": {
41+
"close": true
42+
}
43+
},
2444
{
2545
"type": "npm",
2646
"script": "test",
2747
"problemMatcher": [],
28-
"label": "npm: test",
48+
"label": "test",
2949
"detail": "test"
3050
}
3151
]

0 commit comments

Comments
 (0)