Code Monkey home page Code Monkey logo

Comments (3)

HendrylGodoi avatar HendrylGodoi commented on June 15, 2024 1

For me, it started working after setting the same args that I passed with --build-arg in my Dockerfile, like:

ARG SOME_VALUE
ARG SOME_VALUE_WITH_DEFAULT=127.0.0.1

from aws-ecr-action.

SiegeSailor avatar SiegeSailor commented on June 15, 2024

Same here:

access_key_id: ${{ secrets.AWS_SERVICE_IDENTITY }}
secret_access_key: ${{ secrets.AWS_SERVICE_KEY }}
account_id: ${{ secrets.AWS_ACCOUNT_IDENTITY }}
repo: repository
region: us-east-1
tags: latest,${{ github.sha }}
dockerfile: ./application/Dockerfile
extra_build_args: |
  "
  --build-arg POSTGRES_DB=${{ secrets.POSTGRES_DB}} 
  --build-arg POSTGRES_USER=${{ secrets.POSTGRES_USER}} 
  --build-arg POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD}} 
  --build-arg DEBUG=${{ secrets.DEBUG}} 
  --build-arg AUTO_MIGRATION=${{ secrets.AUTO_MIGRATION}}
  "

Job log:

== START LOGIN
WARNING! Using -*** the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /github/home/.docker/config.json.
Login Succeeded
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

== FINISHED LOGIN
== START DOCKERIZE
"docker build" requires exactly *** argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile

from aws-ecr-action.

dsandstrom avatar dsandstrom commented on June 15, 2024

This is working for me:

- uses: kciter/aws-ecr-action@v4
...

  extra_build_args: --build-arg FIRST=value --build-arg SECOND=value

from aws-ecr-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.