Skip to content

Commit

Permalink
chore(ops): fix docker login, update secrets
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Jan 30, 2024
1 parent d4ac847 commit 53a5849
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ img_dockerfile_path := "infra" / "docker" / "pg_idkit-pg" + pg_image_version + "

# Ensure that that a given file is present
_ensure-file file:
#!/usr/bin/env -S bash -euo pipefail
@if [ ! -f "{{file}}" ]; then
#!/usr/bin/bash
if [ ! -f "{{file}}" ] ; then
echo "[error] file [{{file}}] is required, but missing";
exit 1;
fi;

# Log in with docker using local credentials
docker-login:
{{just}} ensure-file {{docker_password_path}}
{{just}} ensure-file {{docker_username_path}}
{{just}} _ensure-file {{docker_password_path}}
{{just}} _ensure-file {{docker_username_path}}
cat {{docker_password_path}} | {{docker}} login {{docker_image_registry}} -u `cat {{docker_username_path}}` --password-stdin
cp {{docker_config_dir}}/config.json {{docker_config_dir}}/.dockerconfigjson

Expand Down
Binary file modified secrets/docker/.dockerconfigjson
Binary file not shown.
Binary file modified secrets/docker/config.json
Binary file not shown.
Binary file modified secrets/docker/password.secret
Binary file not shown.

0 comments on commit 53a5849

Please sign in to comment.