test: hashFiles with format #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Tests the reuseable workflow for the core-mcp-server | |
| name: Build and Push Container Image Tester | |
| on: | |
| push: | |
| branches: ["feature/push-container-images"] | |
| permissions: {} | |
| jobs: | |
| go-go-reusable-workflow: | |
| name: go-go ${{ matrix.package }} | |
| # https://github.com/.github/workflows/tree/feature/push-container-images/build-and-push-container-image.yml | |
| uses: awslabs/mcp/.github/workflows/build-and-push-container-image.yml@feature/push-container-images | |
| # uses: .github/workflows/build-and-push-container-image.yml | |
| permissions: | |
| contents: read | |
| packages: write | |
| actions: read | |
| secrets: inherit | |
| with: | |
| image: ${{ matrix.package }} | |
| version: ${{ github.run_id }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - core-mcp-server | |
| # steps: | |
| # - name: Checkout repository | |
| # id: checkout-repository | |
| # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| # - name: Check the Reusable Workflow | |
| # run: | | |
| # ls -l .github/workflows/build-and-push-container-image.yml | |
| # cat .github/workflows/build-and-push-container-image.yml | |
| # - name: Build and Publish Image | |
| # # if: hashFiles('./src/core-mcp-server/Dockerfile') | |
| # uses: awslabs/mcp/.github/workflows/build-and-push-container-image.yml@${{ github.sha256}} | |
| # with: | |
| # secrets: inherit | |
| # tags: core-mcp-server | |
| # version: '' # for now everything is the latest or by sha commit | |
| # context: ./src/core-mcp-server | |
| # file: ./src/core-mcp-server/Dockerfile |