This repository has been archived by the owner on May 13, 2024. It is now read-only.
fix: check empty string #694
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |