-
Notifications
You must be signed in to change notification settings - Fork 0
136 lines (131 loc) · 3.78 KB
/
build-release.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: build-release
on: push
jobs:
fe:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: ./fe
file: Dockerfile
target: fe
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-fe
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-fe
load: false
push: true
tags: |
sssomeshhh/rentify:fe
sssomeshhh/rentify:fe-${{ github.sha }}
build-args:
XE=fe
be:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: ./be
file: Dockerfile
target: be
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-be
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-be
load: false
push: true
tags: |
sssomeshhh/rentify:be
sssomeshhh/rentify:be-${{ github.sha }}
build-args:
XE=be
fs:
runs-on: ubuntu-22.04
needs:
- be
- fe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: .
file: Dockerfile
target: fs
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-fs
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-fs
load: false
push: true
tags: |
sssomeshhh/rentify:fs
sssomeshhh/rentify:fs-${{ github.sha }}
rn:
runs-on: ubuntu-22.04
needs: fs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: docker.io
username: sssomeshhh
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Setup Docker Buildx
id: setup_buildx
uses: docker/[email protected]
- name: Build Target
uses: docker/[email protected]
with:
builder: ${{ steps.setup_buildx.name }}
context: .
file: Dockerfile
target: rn
cache-from: |
type=registry,ref=sssomeshhh/cache:rentify-rn
cache-to: |
type=registry,ref=sssomeshhh/cache:rentify-rn
load: false
push: true
tags: |
sssomeshhh/rentify:rn
sssomeshhh/rentify:rn-${{ github.sha }}