forked from heyxyz/hey
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.67 KB
/
deploy-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Deploy Docker Images
on:
push:
branches: [main]
workflow_dispatch:
jobs:
web:
name: Web
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
- name: Build and push Web image 🚀
uses: ./.github/actions/docker
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
image_name: web
docker_file: ./apps/web/Dockerfile
api:
name: API
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
- name: Build and push API image 🚀
uses: ./.github/actions/docker
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
image_name: api
docker_file: ./apps/api/Dockerfile
- name: Trigger API Deployment 🚀
uses: indiesdev/[email protected]
with:
url: https://api.hey.xyz/internal/railway/triggerDeployments
method: 'POST'
body: '{ "secret": "${{ secrets.SECRET }}", "serviceId": "4a2a1bfb-e499-4c71-bf7f-d9ad47443c31" }'
headers: '{ "Content-Type": "application/json", "Referer": "https://hey.xyz" }'
og:
name: OG
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
- name: Build and push OG image 🚀
uses: ./.github/actions/docker
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
image_name: og
docker_file: ./apps/og/Dockerfile