diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..b10f8ee --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,30 @@ +name: ci + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: klmp200/radio-bullshit:latest + + - name: Deploy + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: echo ${{ secrets.PASSWORD }} | sudo -S systemctl restart radio-bullshit \ No newline at end of file diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml deleted file mode 100644 index 7f7da1e..0000000 --- a/.gitea/workflows/docker.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: ci - -on: - push: - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: false - tags: klmp200/radio-bullshit:latest \ No newline at end of file