Skip to content

Commit 2d5197b

Browse files
authored
Enforce labels (#11)
Shuffle workflows to enforce SemVer via labels
1 parent 31cafd3 commit 2d5197b

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.env.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ GREETING_SERVICE_URL=localhost:50052
44
PERSON_SERVICE_URL=localhost:50051
55

66
OTEL_SERVICE_NAME=acme-node
7+
OTEL_LOG_LEVEL=debug
8+
OTEL_TRACES_EXPORTER=otlp
9+
OTEL_METRICS_EXPORTER=none
10+
OTEL_LOGS_EXPORTER=none
11+
OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318

.github/workflows/integration.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
- opened
55
- reopened
66
- labeled
7+
- unlabeled
78
- synchronize
89
branches:
910
- main
@@ -13,7 +14,8 @@ concurrency:
1314
cancel-in-progress: true
1415

1516
permissions:
16-
contents: read
17+
contents: write
18+
pull-requests: write
1719
packages: write
1820
attestations: write
1921
id-token: write
@@ -23,13 +25,19 @@ name: Integration
2325

2426
jobs:
2527
lint:
28+
if: ${{ !contains(fromJSON('["labeled", "unlabeled"]'), github.event.action) }}
2629
name: Integrate
2730
uses: gitops-ci-cd/.github/.github/workflows/lint.yaml@main
2831

2932
test:
33+
if: ${{ !contains(fromJSON('["labeled", "unlabeled"]'), github.event.action) }}
3034
name: Integrate
3135
uses: gitops-ci-cd/.github/.github/workflows/test.yaml@main
3236

37+
bump:
38+
name: Integrate
39+
uses: gitops-ci-cd/.github/.github/workflows/bump.yaml@main
40+
3341
deploy:
3442
if: github.event.action == 'labeled' && github.event.label.name == 'preview' || github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'preview')
3543
name: Deploy

compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ services:
5757
volumes:
5858
- node_modules:/node_modules:cached
5959

60+
jaeger:
61+
image: jaegertracing/jaeger:latest
62+
ports:
63+
- 16686:16686 # UI http://localhost:16686/
64+
- 4317:4317
65+
- 4318:4318
66+
- 5778:5778
67+
- 9411:9411
68+
environment:
69+
- LOG_LEVEL=debug
70+
6071
install:
6172
<<: *npm
6273
profiles: [tasks]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "acme-node",
33
"type": "module",
4-
"version": "0.6.1",
4+
"version": "0.7.0",
55
"description": "Sample Application with developer friendly boilerplate",
66
"scripts": {
77
"start": "node ./src/index.js",

0 commit comments

Comments
 (0)