Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass custom build argument using semantic-release-action #218

Open
vijay-newday opened this issue Oct 6, 2024 · 0 comments
Open

Comments

@vijay-newday
Copy link

Hi Team,

I need to pass the BAMBOO user details as build arguments which will used inside the dockerfile. I tried few things like

      - id: release
        uses: cycjimmy/semantic-release-action@v4
        env:           
          GITHUB_TOKEN: ${{ env.AUTOMATION_TOKEN }}
          VERSION: ${{ inputs.version }}
          BAMBOO_USER: ${{ secrets.BAMBOO_USER }}
          BAMBOO_PASSWORD: ${{ secrets.BAMBOO_PASSWORD }}
        with:
           args: |
              --build-arg BAMBOO_USER=${{ secrets.BAMBOO_USER }} \
              --build-arg BAMBOO_PASSWORD=${{ secrets.BAMBOO_PASSWORD }}

but for some reason, during workflow run, I can't see --build-arg related to BAMBOO details.

this is workflow logs:

[12:26:09 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@codedependant/semantic-release-docker"
[12:26:09 PM] [semantic-release] [@codedependant/semantic-release-docker] › ℹ  building image 062763764693.dkr.ecr.eu-west-1.amazonaws.com/final:a27de79ab2b668b1e177
[12:26:09 PM] [semantic-release] [@codedependant/semantic-release-docker] › ℹ  build command: docker build --network=default --tag 0123456789.dkr.ecr.eu-west-1.amazonaws.com/final:a27de79ab2b668b1e177 --quiet --tag 0123456789.dkr.ecr.eu-west-1.amazonaws.com/final:docker-astro-runtime-9.6.0.1-snowflake-1.2.0 --build-arg SRC_DIRECTORY=docker-astro-runtime --build-arg TARGET_PATH=. --build-arg NPM_PACKAGE_NAME=docker-astro-runtime --build-arg NPM_PACKAGE_SCOPE --build-arg CONFIG_NAME=final --build-arg CONFIG_PROJECT --build-arg GIT_SHA=c500e9c9f3e2335fc0e80d8595a0905afffdce96 --build-arg GIT_TAG=v1.2.0 -f /home/runner/work/docker-astro-runtime/docker-astro-runtime/Dockerfile /home/runner/work/docker-astro-runtime/docker-astro-runtime

Can anyone please let me know if passing build arg is possible ? or if am making any mistake.

Thanks,
V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant