Skip to content

Commit

Permalink
add latest build pipeline (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
addozhang authored Sep 4, 2023
1 parent 79bddca commit 24d1def
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-latest-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-fgw-nightly-image

on:
push:
branches:
- main

jobs:
build-pipy:
name: Build fgw nightly image
runs-on: ubuntu-22.04
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: Docker meta
id: docker_meta
uses: crazy-max/[email protected]
with:
images: flomesh/fgw
tags: |
type=raw,latest
type=sha,format=short
- name: Build and Push
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.nightly
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
GO_VERSION=1.20
LDFLAGS="-s -w"

0 comments on commit 24d1def

Please sign in to comment.