Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
Dominik Rosiek committed Jun 19, 2024
1 parent d0c264a commit 9e85a37
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/sync-repository.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Sync Repository

on:

workflow_dispatch:
inputs:
input:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
dest_docker_namespace: docker.io/sumologic
dest_ecr_namespace: public.ecr.aws/a4t4y2n3
secrets:
DOCKER_USERNAME: ${{ secrets[format('DOCKERHUB_LOGIN_{0}', fromJSON(inputs.input)[0])] }}
DOCKER_PASSWORD: ${{ secrets[format('DOCKERHUB_PASSWORD_{0}', fromJSON(inputs.input)[0])] }}
AWS_ACCESS_KEY_ID: ${{ secrets[format('AWS_ACCESS_KEY_ID_{0}', fromJSON(inputs.input)[0])] }}
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', fromJSON(inputs.input)[0])] }}
DOCKER_USERNAME: ${{ secrets[format('DOCKERHUB_LOGIN_{0}', fromJSON(inputs.input)[1])] }}
DOCKER_PASSWORD: ${{ secrets[format('DOCKERHUB_PASSWORD_{0}', fromJSON(inputs.input)[1])] }}
AWS_ACCESS_KEY_ID: ${{ secrets[format('AWS_ACCESS_KEY_ID_{0}', fromJSON(inputs.input)[1])] }}
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', fromJSON(inputs.input)[1])] }}

0 comments on commit 9e85a37

Please sign in to comment.