Update test script and workflow #85
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 | |
| - uses: docker/setup-buildx-action@v2 | |
| - name: Run dockerbakery/github-metadata-action@${{ github.ref_name }} | |
| id: meta | |
| uses: ./ | |
| - name: Action output | |
| run: echo "${{ steps.meta.outputs.bake-file }}" | |
| - name: Action env | |
| run: | | |
| env | grep GITHUB_ | |
| env | grep RUNNER_ | |
| - name: Action bake file | |
| run: | | |
| docker buildx bake -f "${{ steps.meta.outputs.bake-file }}" --print github-metadata-action | |
| - name: Build | |
| uses: docker/bake-action@v6 | |
| with: | |
| workdir: ./example | |
| source: . | |
| files: | | |
| docker-bake.hcl | |
| ${{ steps.meta.outputs.bake-file }} |