Skip to content

Commit

Permalink
[#436] Move the upload target to the top to expose it more
Browse files Browse the repository at this point in the history
By rearranging the order of targets in the `config.mk` file, this commit
moves the `upload-config` target to a higher position within the file.
This adjustment is made to enhance visibility and accessibility to the
`upload-config` target, ensuring it is more prominent and easier to
locate for users working on deployment configurations.

Changes:
- Moved the `upload-config` target to the top of the `config.mk` file to
  improve visibility and exposure.
- No functionality changes were made; this adjustment aims to make the
  target more accessible within the file structure, enhancing developer
  workflow and understanding of the deployment makefiles.
  • Loading branch information
placek committed Mar 14, 2024
1 parent b332fe8 commit e084d07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/govtool/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ output_dirs := $(sort $(foreach file,$(output_files),$(dir $(file))))
.PHONY: prepare-config
prepare-config: clear $(output_files)

.PHONY: upload-config
upload-config: check-env-defined prepare-config
@:$(call check_defined, ssh_url)
$(rsync) -av -e 'ssh -o StrictHostKeyChecking=no' config/target/. $(ssh_url):config

.PHONY: clear
clear:
rm -rf $(target_config_dir)
Expand Down Expand Up @@ -108,8 +113,3 @@ $(target_config_dir)/nginx/govtool.htpasswd: $(target_config_dir)/nginx/
else \
echo > $@; \
fi

.PHONY: upload-config
upload-config: check-env-defined prepare-config
@:$(call check_defined, ssh_url)
$(rsync) -av -e 'ssh -o StrictHostKeyChecking=no' config/target/. $(ssh_url):config

0 comments on commit e084d07

Please sign in to comment.