Skip to content

Commit

Permalink
test writing file
Browse files Browse the repository at this point in the history
  • Loading branch information
guss84 committed Dec 1, 2023
1 parent 06259c1 commit f1cc4dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@ jobs:
- name: pull docker image and run
working-directory: ./rest
with:
key: testing_key
run: |
echo "${PRIVATE_KEY}" > private_key && chmod 600 private_key
scp -o StrictHostKeyChecking=no -i private_key ./.env ${USER_NAME}@${HOSTNAME}:.env
ssh -o StrictHostKeyChecking=no -T -i private_key ${USER_NAME}@${HOSTNAME} '
# Now we have got the access of EC2 and we will start the deploy .
echo "${TEST_VAR}" > test.txt
echo "${key}" > test.txt
aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin "$TESTING_ECR_REGISTRY/$TESTING_ECR_REGISTRY_IMAGE:$GITHUB_REF_NAME"
docker pull 127163565383.dkr.ecr.eu-central-1.amazonaws.com/openeo-dev-ec2:latest
# stop and remove all containers
Expand Down

0 comments on commit f1cc4dc

Please sign in to comment.