diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ceea8a5..0dd88ad 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,10 +5,6 @@ on: branches: - main -env: - DIR: Korii-Bot - NAME: korii-bot - jobs: build-and-deploy: runs-on: ubuntu-latest @@ -21,9 +17,9 @@ jobs: password: ${{ secrets.SSH_PASSWORD }} port: 22 script: | - cd $DIR + cd Korii git pull - docker build -t $NAME . - docker stop $NAME - docker rm $NAME - docker run --name $NAME -d $NAME \ No newline at end of file + docker build -t korii-bot . + docker stop korii-bot + docker rm korii-bot + docker run --name korii-bot -d korii-bot \ No newline at end of file