-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 898 Bytes
/
Copy pathMakefile
File metadata and controls
21 lines (15 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: install_devcontainer nexus_login dockerhub_login build_and_push_nexus build_and_push_dockerhub run
# for local usage
install_devcontainer:
npm i -g @devcontainers/cli
nexus_login:
echo "${NEXUS_PASSWORD}" | docker login https://registry.weslyg.ru --username "${NEXUS_USERNAME}" --password-stdin
dockerhub_login:
echo "${DOCKERHUB_PASSWORD}" | docker login --username ${DOCKERHUB_USERNAME} --password-stdin
# build_and_push_nexus: nexus_login
build_and_push_nexus:
devcontainer build --workspace-folder . --platform=linux/amd64,linux/arm64 --image-name registry.weslyg.ru/ansible-infra:${TAG_VERSION} --push
# build_and_push_dockerhub: dockerhub_login
build_and_push_dockerhub:
devcontainer build --workspace-folder . --platform=linux/amd64,linux/arm64 --image-name weslyg/ansible-infra:${TAG_VERSION} --push
run: install_devcontainer build_and_push_dockerhub build_and_push_nexus