Skip to content

Commit

Permalink
revert: revert docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JusJira committed Oct 29, 2023
1 parent a6031ba commit d1d0052
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 119 deletions.
7 changes: 0 additions & 7 deletions .dockerignore

This file was deleted.

48 changes: 5 additions & 43 deletions .github/workflows/ssh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,6 @@ on:
branches: [main]

jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container: node:14

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build and Publish to Github Packages Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: jusjira/10-days/chadmart
registry: ghcr.io
username: ${{ secrets.USERNAME }}
password: ${{ secrets. GITHUB_TOKEN }}
dockerfile: Dockerfile
buildargs: NEXT_PUBLIC_BACKEND_URL,NEXT_PUBLIC_META_API_KEY
tags: latest

- name: Deploy package to digitalocean
uses: appleboy/ssh-action@master
env:
GITHUB_USERNAME: ${{ secrets.USERNAME }}
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }}
with:
host: ${{ secrets.HOST }}
port: 22
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
envs: GITHUB_USERNAME, GITHUB_TOKEN
script: |
docker login ghcr.io -u $GITHUB_USERNAME -p $GITHUB_TOKEN
docker pull ghcr.io/jusjira/10-days/chadmart:latest
docker stop chadmart
docker system prune -f
docker run --name chadmart -dit -p 3939:3000 ghcr.io/jusjira/10-days/chadmart:latest
deploy:
name: Deploy
runs-on: ubuntu-latest
Expand All @@ -64,10 +26,10 @@ jobs:
pm2 restart 10days
discord:
needs: [deploy,build]
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
69 changes: 0 additions & 69 deletions Dockerfile

This file was deleted.

0 comments on commit d1d0052

Please sign in to comment.