Skip to content

Commit

Permalink
Automate service update
Browse files Browse the repository at this point in the history
  • Loading branch information
marchof committed Oct 18, 2020
1 parent f636d05 commit 7ffaebe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/cd.yml
Expand Up @@ -75,4 +75,16 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$LATEST_TAG
- name: Logout of Amazon ECR
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
run: docker logout ${{ steps.login-ecr.outputs.registry }}

update-services:
needs: build-docker
runs-on: ubuntu-latest
steps:
- name: Update Sandbox Services
uses: appleboy/ssh-action@v0.1.3
with:
host: ${{ secrets.SANDBOX_HOST }}
username: ${{ secrets.SANDBOX_USERNAME }}
key: ${{ secrets.SANDBOX_KEY }}
script: /home/ec2-user/javasandbox/update

0 comments on commit 7ffaebe

Please sign in to comment.