This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
94 lines (86 loc) · 3.27 KB
/
generate-docker-images.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Update Docker Images
on:
workflow_dispatch:
schedule:
- cron: '50 6 * * 0-6'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
AWS_REGION: us-east-1
jobs:
generate-docker-images:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push edge mintter-site
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/mintter-site/Dockerfile
tags: mintter/mintter-site:master
- name: Build and push stable mintter-site
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && contains(github.ref, '/[0-9]{4}.[0-9]{2}.[0-9]{2}$')
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/mintter-site/Dockerfile
tags: mintter/mintter-site:latest
- name: Build and push edge mintterd
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/mintterd/Dockerfile
tags: mintter/mintterd:master
- name: Build and push stable mintterd
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && contains(github.ref, '/[0-9]{4}.[0-9]{2}.[0-9]{2}$')
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/mintterd/Dockerfile
tags: mintter/mintterd:latest
- name: Build and push edge nextjs
uses: docker/build-push-action@v4
with:
push: true
file: frontend/apps/site/Dockerfile
tags: mintter/sitegw:master
- name: Build and push stable nextjs
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && contains(github.ref, '/[0-9]{4}.[0-9]{2}.[0-9]{2}$')
uses: docker/build-push-action@v4
with:
push: true
file: frontend/apps/site/Dockerfile
tags: mintter/sitegw:latest
- name: Build and push edge monitord
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/monitord/Dockerfile
tags: mintter/monitord:master
- name: Build and push stable monitord
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && contains(github.ref, '/[0-9]{4}.[0-9]{2}.[0-9]{2}$')
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/monitord/Dockerfile
tags: mintter/monitord:latest
- name: Build and push edge relay
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/relayd/Dockerfile
tags: mintter/relayd:master
- name: Build and push stable relay
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && contains(github.ref, '/[0-9]{4}.[0-9]{2}.[0-9]{2}$')
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/relayd/Dockerfile
tags: mintter/relayd:latest