mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-18 15:27:52 +00:00
26 lines
709 B
YAML
26 lines
709 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: swarm-deploy
|
|
|
|
steps:
|
|
# 1. Build and push Next.js tvone Docker image
|
|
- name: build
|
|
image: plugins/docker
|
|
settings:
|
|
registry: registry.petermaquiran.xyz
|
|
repo: registry.petermaquiran.xyz/tvone
|
|
tags:
|
|
- latest
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
|
|
# 2. Trigger service update in Docker Swarm
|
|
- name: update-service
|
|
image: curlimages/curl:latest
|
|
commands:
|
|
- >
|
|
curl -X POST https://docker-socket.petermaquiran.xyz/update-service
|
|
-H "Authorization: Bearer 123"
|
|
-H "Content-Type: application/json"
|
|
-d "{\"service\":\"tvone_tvone\",\"image\":\"registry.petermaquiran.xyz/tvone:latest\"}"
|