Skip to content

Commit b260b1f

Browse files
authored
Merge branch 'main' into feature/mcp-servers-dynamic-configuration
2 parents 236359c + c27f09f commit b260b1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+30
-11653
lines changed

.github/workflows/components-build.yml renamed to .github/workflows/components-build-deploy.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737

3838
- name: Set up Docker Buildx
3939
uses: docker/setup-buildx-action@v3
40-
40+
with:
41+
platforms: linux/amd64,linux/arm64
4142
- name: Log in to Quay.io
4243
uses: docker/login-action@v3
4344
with:
@@ -53,10 +54,11 @@ jobs:
5354
password: ${{ secrets.REDHAT_PASSWORD }}
5455

5556
- name: Build and push ${{ matrix.component.name }} image only for merge into main
56-
if: github.ref == 'refs/heads/main'
57+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5758
uses: docker/build-push-action@v6
5859
with:
5960
context: ${{ matrix.component.context }}
61+
platforms: linux/amd64,linux/arm64
6062
push: true
6163
tags: |
6264
${{ matrix.component.image }}:latest
@@ -65,11 +67,34 @@ jobs:
6567
cache-to: type=gha,mode=max
6668

6769
- name: Build ${{ matrix.component.name }} image for pull requests but don't push
68-
if: github.ref != 'refs/heads/main'
70+
if: github.event_name == 'pull_request_target'
6971
uses: docker/build-push-action@v6
7072
with:
7173
context: ${{ matrix.component.context }}
74+
platforms: linux/amd64,linux/arm64
7275
push: false
7376
tags: ${{ matrix.component.image }}:pr-${{ github.event.pull_request.number }}
7477
cache-from: type=gha
7578
cache-to: type=gha,mode=max
79+
80+
81+
deploy-to-openshift:
82+
runs-on: ubuntu-latest
83+
needs: build-and-push
84+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
85+
steps:
86+
- name: Checkout code
87+
uses: actions/checkout@v4
88+
89+
- name: Install oc
90+
uses: redhat-actions/oc-installer@v1
91+
with:
92+
oc_version: 'latest'
93+
94+
- name: Log in to OpenShift Cluster
95+
run: |
96+
oc login ${{ secrets.OPENSHIFT_SERVER }} --token=${{ secrets.OPENSHIFT_TOKEN }} --insecure-skip-tls-verify
97+
98+
- name: Deploy updated components to OpenShift
99+
run: |
100+
oc delete po --all -n ambient-code

.github/workflows/image.yml

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

.github/workflows/rfe-builder-tests.yml

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

components/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN go mod download
1616
COPY . .
1717

1818
# Build the application (with flags to avoid segfault)
19-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o main .
19+
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o main .
2020

2121
# Final stage
2222
FROM alpine:latest

components/operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN go mod download
1616
COPY . .
1717

1818
# Build the application (with flags to avoid segfault)
19-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o operator .
19+
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o operator .
2020

2121
# Final stage
2222
FROM alpine:latest

demos/rfe-builder/.dockerignore

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

demos/rfe-builder/.gitignore

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

0 commit comments

Comments
 (0)