diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 17fecb1..f29ff99 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -59,6 +59,7 @@ jobs: node-version: [16, 18, 20] with: INITCONTAINER_LANGUAGE: nodejs + DOCKER_IMAGE_NAME: newrelic/newrelic-node-init DOCKER_IMAGE_TAG_SUFFIX: nodejs${{ matrix.node-version }}x DOCKER_IMAGE_TAG_IS_DEFAULT_SUFFIX: ${{ matrix.node-version == 20 }} BUILD_ARGS: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c17785..b99f489 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,11 @@ on: required: false type: string default: "" + DOCKER_IMAGE_NAME: + description: "Name for the published docker image, defaults to newrelic/newrelic--init" + required: false + type: string + default: "" DOCKER_IMAGE_TAG_SUFFIX: description: "Suffix to append to all version tags. (string with no preceding -)" required: false @@ -60,7 +65,7 @@ jobs: id: meta uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # 5.5.1 with: - images: newrelic/newrelic-${{ inputs.INITCONTAINER_LANGUAGE }}-init + images: ${{ inputs.DOCKER_IMAGE_NAME || format('newrelic/newrelic-{0}-init', inputs.INITCONTAINER_LANGUAGE) }} flavor: | latest=false tags: ${{ steps.version.outputs.tags }}