A major rework to add support for more variables and contexts #57
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
| name: test | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'v*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Test runs | |
| id: meta | |
| uses: ./ | |
| - name: Action output | |
| run: | | |
| echo "${{ steps.meta.outputs.bake-file }}" | |
| - name: Action env | |
| run: | | |
| env | grep GITHUB_ | |
| env | grep RUNNER_ | |
| - name: Validate | |
| run: | | |
| docker buildx bake -f "${{ steps.meta.outputs.bake-file }}" --print github-metadata-action |