Skip to content

Commit

Permalink
Fix Node Image Name (#52)
Browse files Browse the repository at this point in the history
* Fix name of node image

* Fix input defaults

* Fix workflow syntax
  • Loading branch information
TimPansino authored Jun 20, 2024
1 parent 898e262 commit 3ad2d09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
required: false
type: string
default: ""
DOCKER_IMAGE_NAME:
description: "Name for the published docker image, defaults to newrelic/newrelic-<INITCONTAINER_LANGUAGE>-init"
required: false
type: string
default: ""
DOCKER_IMAGE_TAG_SUFFIX:
description: "Suffix to append to all version tags. (string with no preceding -)"
required: false
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 3ad2d09

Please sign in to comment.