File tree Expand file tree Collapse file tree 2 files changed +70
-17
lines changed
actions/build-and-push-container-image Expand file tree Collapse file tree 2 files changed +70
-17
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # This local action builds an image and pushes it to registries
3+ name : " Build and push image"
4+ author : " AWS Labs MCP"
5+ description : " Builds an image and pushes it to registries"
6+
7+ # USAGE
8+ #
9+ # - name: Build and Push Container Image
10+ # id: build-and-push-container-image
11+ # uses: ./.github/actions/build-and-push-container-image
12+ # with:
13+ # image: "core-mcp-server"
14+ # version: "0.0.0"
15+ # - name: Step to demonstrate how to access outputs (no need for this)
16+ # id: echo-output
17+ # run: |
18+ # echo "version: ${VERSION}"
19+ # env:
20+ # VERSION: ${{ steps.build-and-push-container-image.outputs.version}}
21+
22+ branding :
23+ icon : ' anchor' # for shipping container ¯\_(ツ)_/¯
24+ color : ' purple'
25+
26+ inputs :
27+ image :
28+ description : ' The image'
29+ type : string
30+ required : true
31+ version :
32+ default : ' '
33+ description : ' The version to associate to the image'
34+ type : string
35+ required : false
36+
37+ outputs :
38+ version :
39+ description : ' The version uploaded'
40+ value : ${{ steps.get-version.outputs.version }}
41+
42+ runs :
43+ using : " composite"
44+ steps :
45+ - id : get-version
46+ name : Workflow ${{ github.workflow }} Job ${{ github.job }} Action ${{ github.action }} Number ${{ github.run_number }} Attempt ${{ github.run_attempt }}
47+ working-directory : ${{ env.GITHUB_WORKSPACE }}
48+ run : |
49+ echo "Is there an ${{ inputs.image }}???"
50+ pwd
51+ ls -al .
52+ echo "Reporting the input version as the output version..."
53+ echo version="${{ inputs.version }}" >>"$GITHUB_OUTPUT"
54+ env :
55+ IMAGE : ${{ inputs.image }}
56+ shell : bash
Original file line number Diff line number Diff line change @@ -27,20 +27,17 @@ jobs:
2727 package :
2828 - core-mcp-server
2929 - git-repo-research-mcp-server
30- # steps:
31- # - name: Checkout repository
32- # id: checkout-repository
33- # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34- # - name: Check the Reusable Workflow
35- # run: |
36- # ls -l .github/workflows/build-and-push-container-image.yml
37- # cat .github/workflows/build-and-push-container-image.yml
38- # - name: Build and Publish Image
39- # # if: hashFiles('./src/core-mcp-server/Dockerfile')
40- # uses: awslabs/mcp/.github/workflows/build-and-push-container-image.yml@${{ github.sha256}}
41- # with:
42- # secrets: inherit
43- # tags: core-mcp-server
44- # version: '' # for now everything is the latest or by sha commit
45- # context: ./src/core-mcp-server
46- # file: ./src/core-mcp-server/Dockerfile
30+
31+ next-jobs :
32+ name : Next Job
33+ permissions :
34+ contents : read
35+ runs-on : ubuntu-latest
36+ steps :
37+ - run : |
38+ echo "go"
39+ - uses : awslabs/mcp/.github/actions/build-and-push-container-image@feature/push-container-images
40+ with :
41+ secrets : inherit
42+ image : ' test-mcp-server'
43+ version : ' TBD'
You can’t perform that action at this time.
0 commit comments