Skip to content

Commit

Permalink
attempt running container
Browse files Browse the repository at this point in the history
  • Loading branch information
guss84 committed Nov 30, 2023
1 parent 0855e08 commit da3a7e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ jobs:
# Now we have got the access of EC2 and we will start the deploy .
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
docker pull "$TESTING_ECR_REGISTRY/$TESTING_ECR_REGISTRY_IMAGE:$GITHUB_REF_NAME"
# stop and remove all containers
docker ps -aq | xargs docker stop | xargs docker rm
docker run -p 8000:8000 -d --env-file .env "$TESTING_ECR_REGISTRY/$TESTING_ECR_REGISTRY_IMAGE:$GITHUB_REF_NAME"
'
Expand Down

0 comments on commit da3a7e2

Please sign in to comment.