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

docker_build_args not working #179

Open
stroncod opened this issue Jul 29, 2024 · 0 comments
Open

docker_build_args not working #179

stroncod opened this issue Jul 29, 2024 · 0 comments

Comments

@stroncod
Copy link

My deploy.yml looks like this:

name: Deploy to Heroku
on: 
  push:
    branches:
      - main
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      # Check-out your repository.
      - name: Checkout
        uses: actions/checkout@v4

      - name: Build, Push and Release a Docker container to Heroku.
        uses: akhileshns/[email protected]
        with:
          # Below you must provide variables for your Heroku app.

          # The email address associated with your Heroku account.
          # If you don't want to use repository secrets (which is recommended) you can do:
          # email: [email protected]
          heroku_email: ${{ secrets.HEROKU_EMAIL }}
          
          # Heroku API key associated with provided user's email.
          # Api Key is available under your Heroku account settings.
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          
          # Name of the heroku application to which the build is to be sent.
          heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}

          usedocker: true
          docker_build_args: |
            GH_PAT
            TEST_VAL
        env:
          GH_PAT: ${{ secrets.GH_PAT }}
          TEST_VAL: value

But when I run the workflow and I called in the dockerfile:

RUN echo "TEST_VAL=${TEST_VAL}"

It prints just TEST_VAL=so basically is not setting up the args from env.

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