Skip to content

Commit 67c0d9d

Browse files
committed
parallel builds
1 parent 83db730 commit 67c0d9d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ on:
4141
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
4242
jobs:
4343
# This workflow contains a single job called "build"
44-
build:
44+
build-aws:
4545
# The type of runner that the job will run on
4646
runs-on: ubuntu-latest
4747

@@ -104,6 +104,24 @@ jobs:
104104
docker buildx build --platform linux/arm64/v8,linux/amd64 -t $ECR_REGISTRY/$REGISTRY_ALIAS/mirror-api-logging:$IMAGE_TAG -f Dockerfile.eBPF . --push
105105
echo "::set-output name=image::$ECR_REGISTRY/$REGISTRY_ALIAS/mirror-api-logging:$IMAGE_TAG"
106106
107+
build-docker:
108+
# The type of runner that the job will run on
109+
runs-on: ubuntu-latest
110+
111+
# Steps represent a sequence of tasks that will be executed as part of the job
112+
steps:
113+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
114+
- uses: actions/checkout@v2
115+
- uses: actions/setup-go@v2
116+
with:
117+
go-version: '^1.16.1' # The Go version to download (if necessary) and use.
118+
- name: install required packages
119+
if: ${{ github.event.inputs.Module == 'legacy' }}
120+
run: sudo apt install libpcap-dev expect
121+
- name: build go module
122+
if: ${{ github.event.inputs.Module == 'legacy' }}
123+
run: go build -o ./mirroring-api-logging
124+
107125
- name: DockerHub login
108126
if: ${{ github.event.inputs.Environment == 'prod' }}
109127
env:

0 commit comments

Comments
 (0)