Repository navigation
101 lines (84 loc) · 2.96 KB
/
Copy pathbeta.yml
File metadata and controls
101 lines (84 loc) · 2.96 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: BETA Workflow
permissions:
contents: read
packages: write
on:
push:
branches:
- beta
jobs:
docker-build-api:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build API Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.api:beta -f Api/Dockerfile .
- name: Push API Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.api:beta
trigger-portainer-webhook-api:
name: Trigger Portainer Webhook
runs-on: ubuntu-latest
needs: docker-build-api
steps:
- name: Call Portainer Webhook
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.PORTAINER_WEBHOOK_URL_API }}
method: POST
docker-build-client:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Client Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.client:beta -f Client/Dockerfile .
- name: Push Client Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.client:beta
trigger-portainer-webhook-client:
name: Trigger Portainer Webhook
runs-on: ubuntu-latest
needs: docker-build-client
steps:
- name: Call Portainer Webhook
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.PORTAINER_WEBHOOK_URL_CLIENT }}
method: POST
docker-build-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Dashboard Docker image
run: docker build -t ghcr.io/lyttle-development/community.v3.dashboard:beta -f Dashboard/Dockerfile .
- name: Push Dashboard Docker image to GitHub Container Registry
run: docker push ghcr.io/lyttle-development/community.v3.dashboard:beta
trigger-portainer-webhook-dashboard:
name: Trigger Portainer Webhook
runs-on: ubuntu-latest
needs: docker-build-dashboard
steps:
- name: Call Portainer Webhook
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.PORTAINER_WEBHOOK_URL_DASHBOARD }}
method: POST