Skip to content

Commit 8e8a840

Browse files
committed
Use manual image build due to Oracle GH restrictions
Signed-off-by: Gerald Venzl <[email protected]>
1 parent bdcf6a2 commit 8e8a840

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/build-doc-mcp.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,11 @@ jobs:
3737
cd src/oracle-db-doc-mcp-server/
3838
buildah bud -f Dockerfile -t oracle-db-doc:latest-${{ steps.os_arch.outputs.OS_ARCH }} .
3939
40-
- name: 🔓 Login to GHCR registry
41-
uses: redhat-actions/podman-login@v1
42-
with:
43-
username: ${{ github.actor }}
44-
password: ${{ secrets.GITHUB_TOKEN }}
45-
registry: ghcr.io
46-
47-
- name: 🫸 Push image to Container Registry
48-
uses: redhat-actions/push-to-registry@v2
49-
with:
50-
registry: ghcr.io/gvenzl/mcp
51-
image: oracle-db-doc
52-
tags: latest-${{ steps.os_arch.outputs.OS_ARCH }}
40+
- name: 🫸 Push arch-specific image to Container Registry
41+
run: |
42+
podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
43+
podman tag oracle-db-doc:latest-${{ steps.os_arch.outputs.OS_ARCH }} ghcr.io/gvenzl/mcp/oracle-db-doc:latest-${{ steps.os_arch.outputs.OS_ARCH }}
44+
podman push ghcr.io/gvenzl/mcp/oracle-db-doc:latest-${{ steps.os_arch.outputs.OS_ARCH }}
5345
5446
upload-multi-arch:
5547
name: 🫸 Push multi-arch manifest
@@ -60,15 +52,9 @@ jobs:
6052
packages: write
6153

6254
steps:
63-
- name: 🔓 Login to GHCR registry
64-
uses: redhat-actions/podman-login@v1
65-
with:
66-
username: ${{ github.actor }}
67-
password: ${{ secrets.GITHUB_TOKEN }}
68-
registry: ghcr.io
69-
70-
- name: 🫸 Push multi-arch manifest
55+
- name: 🫸 Push multi-arch image to Container Registry
7156
run: |
57+
podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
7258
podman manifest create ghcr.io/gvenzl/mcp/oracle-db-doc:latest
7359
podman manifest add ghcr.io/gvenzl/mcp/oracle-db-doc:latest ghcr.io/gvenzl/mcp/oracle-db-doc:latest-amd64
7460
podman manifest add ghcr.io/gvenzl/mcp/oracle-db-doc:latest ghcr.io/gvenzl/mcp/oracle-db-doc:latest-arm64

0 commit comments

Comments
 (0)