vegapokerbot/.gitea/workflows/deploy.yml
Neur0toxine 20b2e75c9c
All checks were successful
default / build-and-deploy (push) Successful in 56s
fix deps (3)
2025-03-30 20:25:30 +03:00

51 lines
No EOL
1.2 KiB
YAML

name: default
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: docker
container:
image: docker:dind
options: --privileged
steps:
- name: Set Up Dependencies
run: apk add --no-cache nodejs bash curl
- name: Start Docker
run: |
dockerd-entrypoint.sh &
until docker info > /dev/null 2>&1; do
echo "Waiting for Docker daemon..."
sleep 1
done
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.neur0tx.site
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.neur0tx.site/neur0toxine/vegapokerbot:latest
- name: Deploy
uses: actions/ssh-action@v1
with:
host: ${{ secrets.DEPLOYER_HOST }}
username: ${{ secrets.DEPLOYER_USERNAME }}
key: ${{ secrets.DEPLOYER_KEY }}
port: ${{ secrets.DEPLOYER_PORT }}
script: bash vegapokerbot.sh