From 622d8886cc3093a842da11dc9dcb2306049b94cf Mon Sep 17 00:00:00 2001 From: Luc DUZAN Date: Wed, 14 Feb 2024 16:40:24 +0100 Subject: [PATCH] Create artifact --- .github/workflows/build-exec.yml | 23 +++++++++++++++++++++++ .github/workflows/ci.yml | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/build-exec.yml diff --git a/.github/workflows/build-exec.yml b/.github/workflows/build-exec.yml new file mode 100644 index 0000000..763cb92 --- /dev/null +++ b/.github/workflows/build-exec.yml @@ -0,0 +1,23 @@ +name: Build Docker Images + +on: + workflow_call: +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 + goos: [linux, windows, darwin] + goarch: [amd64, arm64] + steps: + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1.48 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz" + project_path: "./" + binary_name: "conduktor" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01fc8ba..1057c06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@v3 - name: run test run: ./test_final_exec.sh + build-exec: + name: Build exec + uses: ./.github/workflows/build-exec.yml build-docker: name: Build and publish conduktorctl images uses: ./.github/workflows/build-docker.yml