Skip to content

Configure deploy credentials #3

Closed
@homersimpsons

Description

@homersimpsons

The build-and-push-image / build-and-push job keeps failing with the following message:

Error: Username and password required

I guess the secrets used in the workflow are not defined;

AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID}}
AWS_REGION: ${{secrets.AWS_REGION}}
AWS_ECR_ACCESS_KEY_ID: ${{secrets.AWS_ECR_ACCESS_KEY_ID}}
AWS_ECR_SECRET_ACCESS_KEY: ${{secrets.AWS_ECR_SECRET_ACCESS_KEY}}
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}

For the record I did run the representer against hello-world submissions and I have the following results:

Results

Without the representer:

$ find ./solutions ! -empty -type f -name HelloWorld.php -exec md5sum {} + | sort | uniq -w32 -c | wc -l
82 # Number of different solutions without the representer

$ find ./solutions ! -empty -type f -name HelloWorld.php -exec md5sum {} + | sort | uniq -w32 -c | sed 's@^[^0-9]*\([0-9]\+\).*@\1@' | sort -n | uniq -c
     61 1 # There are 61 unique (1) solution without the representer
     11 2
      2 3
      1 4
      4 9
      2 14
      1 343 # The most common solution has 343 candidate without the representer

With the representer:

$ find ./solutions ! -empty -type f -name representation.txt -exec md5sum {} + | sort | uniq -w32 -c | wc -l
18 # Number of different solutions with the representer

$  find ./solutions ! -empty -type f -name representation.txt -exec md5sum {} + | sort | uniq -w32 -c  | sed 's@^[^0-9]*\([0-9]\+\).*@\1@' | sort -n | uniq -c
     11 1  # There are 11 unique (1) solution with the representer
      1 2  # This group is legit (typing)
      1 3  # This group may be handled later, it is due to code re-ordering
      1 5  # This group of will be included in the 33 group by converting quotes
      1 10 # This group of 10 solutions will be included in the 409 group by converting quotes
      1 27 # This group of 27 solutions is legit (the function is called and echo-ed)
      1 33 # This group of 33 solutions is legit (the function is called)
      1 409  # The most common solution has 409 candidate with the representer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions