-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (100 loc) · 2.86 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
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=fe
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 }}