when: branch: main event: [push, manual] steps: - name: build image: docker:cli volumes: - /var/run/docker.sock:/var/run/docker.sock commands: - docker build -t yugioh-frontend:latest . - name: deploy image: docker:cli volumes: - /var/run/docker.sock:/var/run/docker.sock commands: - docker stop yugioh-frontend || true - docker rm yugioh-frontend || true - docker network create yugioh || true - docker run -d --name yugioh-frontend --restart unless-stopped --network yugioh -p 8041:80 yugioh-frontend:latest