Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Oct 9, 2023
1 parent c4f1345 commit f2d3e1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ jobs:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: ufabc-next-backend
IMAGE_TAG: ${{ github.sha }}
PRODUCTION_ENV: ${{ secrets.PRODUCTION_ENV }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
echo $PRODUCTION_ENV > .env.production
ls
# docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
# docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG

- name: Deploy and start container
uses: appleboy/[email protected]
env:
PRODUCTION_ENV: ${{ secrets.PRODUCTION_ENV }}
with:
host: ${{ secrets.HOSTNAME }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SECRET_SSH_KEY }}
script: |
echo $PRODUCTION_ENV > .env.production
ls
# docker pull ${{ secrets.AWS_ACCOUNT_ID }}.${{ secrets.ECR_REGISTRY }}/ufabc-next-backend:${{ github.sha }}
# docker run --name ufabc-next-backend --env-file ./.env.production -d -p ${{ secrets.PORT }}:${{ secrets.PORT }} ${{ secrets.AWS_ACCOUNT_ID }}.${{ secrets.ECR_REGISTRY }}/ufabc-next-backend:${{ github.sha }}

0 comments on commit f2d3e1d

Please sign in to comment.