Skip to content

Commit

Permalink
refactor(github): finalize and change structure of build file
Browse files Browse the repository at this point in the history
  • Loading branch information
ikr4-m committed Aug 15, 2024
1 parent 98c9b86 commit 70cf8ab
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 40 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,50 @@ on:
push:
branches:
- master
- development

jobs:
client:
# For testing
test-build-client:
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: build-client
secrets: inherit

tunnel:
test-build-tunnel:
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: build-tunnel
secrets: inherit

artifact-client:
needs: test-build-client
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: build-client
use_artifacts: true
binary_name: mdrop
secrets: inherit

artifact-tunnel:
needs: test-build-tunnel
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: build-tunnel
use_artifacts: true
binary_name: mdrop-tunnel
secrets: inherit

artifact-client-upload:
needs: artifact-client
uses: ./.github/workflows/reusable-upload-s3.yml
with:
binary_name: mdrop
secrets: inherit

artifact-tunnel-upload:
needs: artifact-tunnel
uses: ./.github/workflows/reusable-upload-s3.yml
with:
binary_name: mdrop-tunnel
secrets: inherit
38 changes: 0 additions & 38 deletions .github/workflows/build-upload-binary.yml

This file was deleted.

0 comments on commit 70cf8ab

Please sign in to comment.