Convert some workflow inputs to dynamically created Github action input

Viewed 15

I have a called workflow. This takes several inputs. Some of them define which images are to be pushed to a repo.

My end goal is to create a dynamic variable for the tags input in the action below:

        name: Build and push
        uses: docker/build-push-action@v3
        with:
          context: .
          push: true
          tags: |
            foo_image
            bar_image
            foobar_image

Ι have the following inputs

  inputs:
    build_foo_image:
       type: boolean
       required: true
       default: false
    build_bar_image:
      type: boolean
      required: true
      default: false
...(etc)

Is it possible to convert those (and only those inputs) to a dynamic variable to be passed to the with statement of docker build/push?

0 Answers
Related