docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.28k stars 548 forks source link

feat: allow csv usage in labels - fixes #873 #874

Closed hegerdes closed 1 year ago

hegerdes commented 1 year ago

This PR allows the usage of comma separated inputs for labels when using composite or reusable inputs:

      - name: Build and push
        uses: docker/build-push-action@v4
        with:
          push: true
          tags: user/app:latest
          labels: ${{ inputs.build-labels }}
          # Where build-labels is:
          # build-labels: Foo=Bar,Bar=Baz

Fixes #873