-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (71 loc) · 2.23 KB
/
github-actions.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build Images
run-name: ${{ github.actor }}
on:
push:
branches:
- main
jobs:
docker-images:
runs-on: Ubuntu-latest
permissions:
contents: read
packages: write
actions: read
steps:
- uses: actions/checkout@v3
- run: docker-compose -f ./Cluster/docker-compose.yml build
- run: docker-compose -f ./Cluster/docker-compose.yml up -d
- run: docker-compose -f ./Cluster/docker-compose.yml down
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
- uses: actions/delete-package-versions@v5
with:
package-name: 'deightma_coordinator'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'bicubic_interpolation_service'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'deightma_master'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'deightma_nodecs'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'hasher_service'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'deightma_webui'
package-type: container
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v5
with:
package-name: 'deightma_webui_small'
package-type: container
min-versions-to-keep: 1
- run: |
docker push ghcr.io/saetch/deightma_coordinator:latest
- run: |
docker push ghcr.io/saetch/bicubic_interpolation_service:latest
- run: |
docker push ghcr.io/saetch/deightma_master:latest
- run: |
docker push ghcr.io/saetch/deightma_nodecs:latest
- run: |
docker push ghcr.io/saetch/hasher_service:latest
- run: |
docker push ghcr.io/saetch/deightma_webui:latest
build-client:
runs-on: Ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: dotnet build ./Client/Client.csproj