I beforehand appreciate any help I might receive.
I’m trying to use plugins/ecr to build+push a docker container that runs a node.js application.
I need to load a secret that is used as a “build-arg” in docker build (an npm_token)
Here’s my pipeline:
\ \ image: plugins/ecr
\ \ access_key: <access_key>
\ \ repo: <registry>/<repo>
\ \ registry: <registry>
\ \ dockerfile: <path_to_dockerfile>
\ \ tags: latest
\ \ context: <path_to_context>
\ \ build_args:
\ \ \ - NPM_TOKEN=$NPM_TOKEN
\ \ secrets: [ ecr_secret_key, npm_token ]
A secret “npm_token” exists. Yet, the ecr doesn’t seem to allow more than the 3 default secrets that are documented.
How do we pass custom build arguments to this plugin in particular, being them secret (and therefore I want to exclude from source version control ?