Skip to content

Commit 94769f7

Browse files
authored
Merge branch 'main' into cline
2 parents cd7f72d + 4588a3e commit 94769f7

File tree

11 files changed

+965
-24
lines changed

11 files changed

+965
-24
lines changed

.github/workflows/run-on-pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
artifact-name: "codegate-image"
2222
integration-tests:
23+
if: github.event.pull_request.head.repo.full_name == 'stacklok/codegate'
2324
name: Integration Tests
2425
needs: [ci, image-build] # We need the image available in order to run the integration tests
2526
uses: ./.github/workflows/integration-tests.yml

.github/workflows/run-on-push.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,21 @@ jobs:
1313
ci:
1414
name: Build, Test & Lint
1515
uses: ./.github/workflows/ci.yml
16+
image-build:
17+
name: OCI Image - Build
18+
needs: [ci] # No need to build the image if the CI fails
19+
uses: ./.github/workflows/image-build.yml
20+
with:
21+
artifact-name: "codegate-image"
22+
integration-tests:
23+
name: Integration Tests
24+
needs: [ci, image-build] # We need the image available in order to run the integration tests
25+
uses: ./.github/workflows/integration-tests.yml
26+
with:
27+
artifact-name: "codegate-image"
28+
secrets:
29+
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
1630
openapi:
1731
name: Generate the OpenAPI docs
1832
needs: [ci]
19-
uses: ./.github/workflows/openapi.yml
33+
uses: ./.github/workflows/openapi.yml

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build: clean test
3434
image-build:
3535
DOCKER_BUILDKIT=1 $(CONTAINER_BUILD) \
3636
-f Dockerfile \
37-
--build-arg LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4) \
37+
--build-arg LATEST_RELEASE=$(shell curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4) \
3838
--build-arg CODEGATE_VERSION="$(shell git describe --tags --abbrev=0)-$(shell git rev-parse --short HEAD)-dev" \
3939
-t codegate \
4040
. \

0 commit comments

Comments
 (0)