Skip to content

Commit

Permalink
feat: update release to also push latest
Browse files Browse the repository at this point in the history
  • Loading branch information
s-irvine committed Aug 6, 2020
1 parent 121729e commit 1dd1244
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ release: validate-reqs gpg-preflight previous-tag release-tag docker-test docker
hub release create -m $(RELEASE_TAG) -a dist/simulator $(RELEASE_TAG)
docker tag $(CONTAINER_NAME_LATEST) $(DOCKER_HUB_ORG)/simulator:$(RELEASE_TAG)
docker push $(DOCKER_HUB_ORG)/simulator:$(RELEASE_TAG)
docker tag $(CONTAINER_NAME_LATEST) $(DOCKER_HUB_ORG)/simulator:latest
docker push $(DOCKER_HUB_ORG)/simulator:latest
cd attack && RELEASE_TAG=$(RELEASE_TAG) make release


Expand Down
3 changes: 2 additions & 1 deletion attack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ifndef RELEASE_TAG
$(error RELEASE_TAG is undefined)
endif
docker tag $(CONTAINER_NAME_LATEST) $(DOCKER_HUB_ORG)/simulator-attack:$(RELEASE_TAG)
docker push "${CONTAINER_NAME_LATEST}"
docker push $(DOCKER_HUB_ORG)/simulator-attack:$(RELEASE_TAG)
docker tag $(CONTAINER_NAME_LATEST) $(DOCKER_HUB_ORG)/simulator-attack:latest
docker push $(DOCKER_HUB_ORG)/simulator-attack:latest

21 changes: 11 additions & 10 deletions kubesim
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ touch "${SIMULATOR_CONFIG_FILE}"

docker pull ${CONTAINER_NAME}

docker run \
-h launch \
-v "${SIMULATOR_AWS_CREDS_PATH}":/home/launch/.aws \
-v "${KUBE_SIM_TMP}":/home/launch/.kubesim \
-e "AWS_ACCESS_KEY_ID" \
-e "AWS_SECRET_ACCESS_KEY" \
-e "AWS_REGION" \
-e "AWS_DEFAULT_REGION" \
-e "AWS_PROFILE" \
-e "AWS_DEFAULT_PROFILE" \
docker run \
-h launch \
-v "${SIMULATOR_AWS_CREDS_PATH}":/home/launch/.aws \
-v "${KUBE_SIM_TMP}":/home/launch/.kubesim \
-v "${KUBE_SIM_TMP}":/home/launch/.ssh \
-e "AWS_ACCESS_KEY_ID" \
-e "AWS_SECRET_ACCESS_KEY" \
-e "AWS_REGION" \
-e "AWS_DEFAULT_REGION" \
-e "AWS_PROFILE" \
-e "AWS_DEFAULT_PROFILE" \
--rm --init -it ${CONTAINER_NAME}

0 comments on commit 1dd1244

Please sign in to comment.