build(deps-dev): bump coverage from 7.15.4 to 7.16.0 #248
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: Build Docker Image | |
| concurrency: | |
| # Cancel superseded runs on the same PR. github.ref is refs/pull/<n>/merge, | |
| # so each PR is its own group and never cancels another's runs. | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: | |
| - "main" | |
| merge_group: | |
| jobs: | |
| docker: | |
| name: Build and (conditionally) Push Docker Image | |
| if: github.repository == 'linkml/linkml' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v6.2.0 | |
| with: | |
| images: linkml/linkml | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| - name: Log Docker tags | |
| run: | | |
| echo "Docker tags to be used:" | |
| echo "${{ steps.meta.outputs.tags }}" | |
| echo "Event: ${{ github.event_name }}" | |
| echo "Ref: ${{ github.ref }}" | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4.2.0 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4.3.0 | |
| - name: Login to DockerHub | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: docker/login-action@v4.6.0 | |
| with: | |
| username: cjmungall | |
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v7.3.0 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64/v8 | |
| push: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |