-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 1.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
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: .
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 }}
fs:
runs-on: ubuntu-22.04
needs:
- 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 }}