This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
86 lines (75 loc) · 2.02 KB
/
devel.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
name: development
on:
push:
branches:
- develop
- 'feature/**'
- 'hotfix/**'
jobs:
codegen:
name: Codegen
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: go mod tidy
run: make go-mod-tidy
- name: Codegen checks
run: make verify-codegen
- name: init-repo scripts
run: make check-scripts
push_to_registry:
name: Build and Push Docker image to Docker Hub - DEV
runs-on: ubuntu-22.04
needs:
- codegen
strategy:
matrix:
id: [ "manager", "proxy-init", "ingress-pipy" ]
steps:
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.FLOMESH_DOCKERHUB_USERNAME }}
password: ${{ secrets.FLOMESH_DOCKERHUB_PASSWORD }}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set version
run: |
cat VERSION >> $GITHUB_ENV
- name: Package Helm Charts
run: make charts-tgz-dev
- name: Docker meta - ${{ matrix.id }}
id: docker_meta
uses: crazy-max/[email protected]
with:
images: flomesh/fsm-${{ matrix.id }}
tags: |
type=raw,${{ env.APP_VERSION }}-dev
type=raw,dev
type=edge
- name: Build and Push ${{ matrix.id }} - DEV
uses: docker/[email protected]
with:
context: .
file: ./dockerfiles/${{ matrix.id }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
DISTROLESS_TAG=debug-nonroot