File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 BUILDKIT_HOST : tcp://localhost:1234
1515 DOCKER_BUILDKIT : " 1"
1616 DOCKER_HOST : tcp://localhost:2376
17- runs-on : [x-small-k8s-mode]
17+ runs-on :
18+ - x-small-k8s-mode
1819 steps :
1920 - name : Checkout code
2021 uses : actions/checkout@v3
3738 -e DREMIO_OAUTH_SUPPORTED=false \
3839 dremio-mcp-server:${{ github.sha }} \
3940 dremio-mcp-server tools list
40-
4141 - name : Start container
4242 run : |
4343 docker run \
5656 - name : Test container
5757 run : |
5858 uv run python tests/stremable_http_cli.py --url http://127.0.0.1:6789/mcp --token fake
59-
60- - name : Stop container
59+ - env :
60+ ACCESS_TOKEN_FILE : /tmp/access_token.txt
61+ GCP_METADATA_URL : http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token
62+ name : Login to pkg.dev
63+ run : |
64+ curl -H "Metadata-Flavor: Google" "${GCP_METADATA_URL}" | jq -r '.access_token' > ${ACCESS_TOKEN_FILE}
65+ cat ${ACCESS_TOKEN_FILE} | docker login -u oauth2accesstoken --password-stdin us-west1-docker.pkg.dev
66+ - id : tag
67+ name : Create tag
6168 run : |
62- docker stop mcp
69+ head_sha=$(git rev-parse --short HEAD)
70+ timestamp=$(date -u +"%Y%m%d%H%M%S")
71+
72+ tag="${timestamp}-${head_sha}"
73+
74+ echo "tag=$tag" | tee -a "$GITHUB_OUTPUT"
75+ - name : Build container
76+ uses : docker/build-push-action@v5
77+ with :
78+ context : .
79+ push : true
80+ tags : |
81+ us-west1-docker.pkg.dev/dremio-1093/dremio/dremio-mcp-server:${{ steps.tag.outputs.tag }}
82+
6383
You can’t perform that action at this time.
0 commit comments