Skip to content

Commit

Permalink
refactor: Justfile changes
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Oct 29, 2023
1 parent 5d6c346 commit bdaae04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ docker_username_path := env_var_or_default("DOCKER_USERNAME_PATH", "secrets/dock
docker_image_registry := env_var_or_default("DOCKER_IMAGE_REGISTRY", "ghcr.io/vadosware/pg_idkit")
docker_config_dir := env_var_or_default("DOCKER_CONFIG", "secrets/docker")

## Ensure that that a given file is present
# Ensure that that a given file is present
_ensure-file file:
#!/usr/bin/env -S bash -euo pipefail
@if [ ! -f "{{file}}" ]; then
Expand All @@ -101,11 +101,14 @@ docker-login:
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

# Build the docker image for pg_idkit
image:
{{docker}} build -f {{pgkit_dockerfile_path}} -t {{pgkit_image_name_full}}

# Build the docker image used in CI
build-ci-image:
{{docker}} build -f {{ci_dockerfile_path}} -t {{ci_image_name_full}} .

# Push the docker image used in CI (to GitHub Container Registry)
push-ci-image:
{{docker}} push {{ci_image_name_full}}

0 comments on commit bdaae04

Please sign in to comment.