-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.44 KB
/
Copy pathdocker.yml
File metadata and controls
50 lines (47 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Docker image (plsql-mcp)
# Build the full PL/SQL Intelligence server image (live Oracle DB tools +
# intelligence) with Oracle Instant Client bundled, and push it to GHCR
# (ghcr.io/muhdur/plsql-mcp). The image carries the
# io.modelcontextprotocol.server.name label the MCP registry needs.
on:
push:
tags: ["plsql-mcp-v*", "v*"]
workflow_dispatch:
inputs:
version:
description: "Image version tag (e.g. 0.1.0)"
required: true
default: "0.1.0"
permissions:
contents: read
packages: write
jobs:
docker:
name: build + push (GHCR)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Resolve version
id: ver
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "v=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
else
echo "v=${GITHUB_REF##*-v}" >> "$GITHUB_OUTPUT"
fi
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/muhdur/plsql-mcp:${{ steps.ver.outputs.v }}
ghcr.io/muhdur/plsql-mcp:latest
provenance: false