Skip to content

Commit

Permalink
Merge pull request #29 from SWM-SMART/dev
Browse files Browse the repository at this point in the history
πŸ’š fix: add requirements.txt
  • Loading branch information
minseok-oh authored Oct 31, 2023
2 parents b68785a + a1c0166 commit 07c74db
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ jobs:
deploy:
needs: build
name: Deploy
runs-on: [ self-hosted, label-ai ]
runs-on: ubuntu-latest
steps:
- name: Login to ghcr
uses: docker/login-action@v1
- name: Deploy with AWS SSM Send-Command
uses: peterkimzz/[email protected]
id: ssm
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Docker run
run: |
docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest
docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
instance-ids: ${{ secrets.INSTANCE_ID }}
working-directory: /usr/bin
command: |
docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest
docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest

0 comments on commit 07c74db

Please sign in to comment.