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 f1cc4dc commit 6aa6885
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
PRIVATE_KEY: ${{ secrets.TESTING_SSH_PRIVATE_KEY }}
HOSTNAME: ${{ secrets.TESTING_SSH_HOST }}
USER_NAME: ${{ secrets.TESTING_USER_NAME }}
TEST_VAR: testing

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -96,15 +95,13 @@ 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 "${key}" > test.txt
echo "$DEPLOYMENT_NAME" > 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 6aa6885

Please sign in to comment.