Skip to content

Commit a598122

Browse files
committed
add support on latest docker image build
1 parent d99ab8b commit a598122

12 files changed

Lines changed: 177 additions & 2630 deletions

File tree

.github/workflows/event-gateway-integration-test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,17 @@ jobs:
3939
runs-on: ubuntu-24.04
4040
steps:
4141
- name: Checkout code
42-
uses: actions/checkout@v4
43-
42+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
43+
with:
44+
persist-credentials: false
4445
- name: Set up Go
45-
uses: actions/setup-go@v5
46+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
4647
with:
4748
go-version: '1.26.2'
4849
cache-dependency-path: '**/go.sum'
4950

5051
- name: Set up Docker Buildx
51-
uses: docker/setup-buildx-action@v3
52+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5253

5354
- name: Read version
5455
id: version
@@ -67,7 +68,7 @@ jobs:
6768
run: make -C event-gateway/it test
6869

6970
- name: Upload compose logs
70-
uses: actions/upload-artifact@v4
71+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7172
if: always()
7273
with:
7374
name: compose-logs

event-gateway/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ build-event-gateway-controller: ## Build event-gateway-controller Docker image
8888
--build-arg GIT_COMMIT=$$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") \
8989
--target production \
9090
-t $(EVENT_GATEWAY_CONTROLLER_IMAGE):$(VERSION) \
91+
-t $(EVENT_GATEWAY_CONTROLLER_IMAGE):latest \
9192
--load \
9293
.
9394
@rm -rf ../gateway/gateway-controller/target
@@ -127,6 +128,7 @@ build-and-push-multiarch-event-gateway-controller: ## Build and push event-gatew
127128
--build-arg GIT_COMMIT=$$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") \
128129
--target production \
129130
-t $(EVENT_GATEWAY_CONTROLLER_IMAGE):$(VERSION) \
131+
-t $(EVENT_GATEWAY_CONTROLLER_IMAGE):latest \
130132
--push \
131133
.
132134
@rm -rf ../gateway/gateway-controller/target

event-gateway/docker-compose.dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
services:
2020
gateway-controller:
21-
image: ghcr.io/wso2/api-platform/event-gateway-controller:0.6.0-SNAPSHOT
21+
image: ghcr.io/wso2/api-platform/event-gateway-controller:latest
2222
command: ["-config", "/etc/gateway-controller/config.toml"]
2323
ports:
2424
- "9090:9090" # Management API
@@ -45,7 +45,7 @@ services:
4545
- egw-network
4646

4747
event-gateway:
48-
image: ghcr.io/wso2/api-platform/event-gateway-runtime:0.6.0-SNAPSHOT
48+
image: ghcr.io/wso2/api-platform/event-gateway-runtime:latest
4949
ports:
5050
- "8080:8080" # WebSub HTTP
5151
- "8443:8443" # WebSub HTTPS

event-gateway/gateway-runtime/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ build-docker: ## Build Docker image
9595
--build-arg VERSION=$(VERSION) \
9696
--build-arg GIT_COMMIT=$(GIT_COMMIT) \
9797
-t $(IMAGE_NAME):$(VERSION) \
98+
-t $(IMAGE_NAME):latest \
9899
-f Dockerfile .
99100
@rm -rf target
100101
@echo "✓ Built $(IMAGE_NAME):$(VERSION)"
@@ -117,6 +118,7 @@ build-debug: ## Build Docker image with Delve remote debugger (port 2345)
117118
--build-arg VERSION=$(VERSION) \
118119
--build-arg GIT_COMMIT=$(GIT_COMMIT) \
119120
-t $(IMAGE_NAME)-debug:$(VERSION) \
121+
-t $(IMAGE_NAME)-debug:latest \
120122
-f Dockerfile.debug .
121123
@rm -rf target
122124
@echo "✓ Built $(IMAGE_NAME)-debug:$(VERSION) (Delve on :2345)"
@@ -139,6 +141,7 @@ build-and-push-multiarch: ## Build and push Docker image for multiple architectu
139141
--build-arg VERSION=$(VERSION) \
140142
--build-arg GIT_COMMIT=$(GIT_COMMIT) \
141143
-t $(IMAGE_NAME):$(VERSION) \
144+
-t $(IMAGE_NAME):latest \
142145
-f Dockerfile .
143146
@rm -rf target
144147
@echo "✓ Built and pushed $(IMAGE_NAME):$(VERSION) for linux/amd64,linux/arm64"

event-gateway/it/features/websub-e2e.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Feature: WebSub End-to-End Flow
124124

125125
# ==================== PUBLISH ====================
126126

127-
Scenario: Publish an event to a known topic returns 200
127+
Scenario: Publish an event to a known topic returns 202
128128
Given I authenticate using basic auth as "admin"
129129
When I create a WebSub API with the following configuration:
130130
"""

event-gateway/it/go.mod

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -181,34 +181,34 @@ require (
181181
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
182182
github.com/yusufpapurcu/wmi v1.2.4 // indirect
183183
github.com/zclconf/go-cty v1.17.0 // indirect
184-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
184+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
185185
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
186186
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.60.0 // indirect
187187
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
188-
go.opentelemetry.io/otel v1.36.0 // indirect
188+
go.opentelemetry.io/otel v1.39.0 // indirect
189189
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.35.0 // indirect
190190
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.35.0 // indirect
191191
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 // indirect
192192
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 // indirect
193193
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 // indirect
194-
go.opentelemetry.io/otel/metric v1.36.0 // indirect
195-
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
196-
go.opentelemetry.io/otel/sdk/metric v1.36.0 // indirect
197-
go.opentelemetry.io/otel/trace v1.36.0 // indirect
194+
go.opentelemetry.io/otel/metric v1.39.0 // indirect
195+
go.opentelemetry.io/otel/sdk v1.39.0 // indirect
196+
go.opentelemetry.io/otel/sdk/metric v1.39.0 // indirect
197+
go.opentelemetry.io/otel/trace v1.39.0 // indirect
198198
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
199199
go.yaml.in/yaml/v3 v3.0.4 // indirect
200-
golang.org/x/crypto v0.43.0 // indirect
201-
golang.org/x/net v0.45.0 // indirect
202-
golang.org/x/oauth2 v0.30.0 // indirect
203-
golang.org/x/sync v0.17.0 // indirect
204-
golang.org/x/sys v0.37.0 // indirect
205-
golang.org/x/term v0.36.0 // indirect
206-
golang.org/x/text v0.30.0 // indirect
200+
golang.org/x/crypto v0.46.0 // indirect
201+
golang.org/x/net v0.48.0 // indirect
202+
golang.org/x/oauth2 v0.34.0 // indirect
203+
golang.org/x/sync v0.19.0 // indirect
204+
golang.org/x/sys v0.39.0 // indirect
205+
golang.org/x/term v0.38.0 // indirect
206+
golang.org/x/text v0.32.0 // indirect
207207
golang.org/x/time v0.11.0 // indirect
208-
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a // indirect
209-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
210-
google.golang.org/grpc v1.74.2 // indirect
211-
google.golang.org/protobuf v1.36.9 // indirect
208+
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
209+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
210+
google.golang.org/grpc v1.79.3 // indirect
211+
google.golang.org/protobuf v1.36.10 // indirect
212212
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
213213
gopkg.in/inf.v0 v0.9.1 // indirect
214214
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)