From 1219006a6e50463b3ad3bd01bf40dd70d2f7958a Mon Sep 17 00:00:00 2001 From: Bethuel Mmbaga Date: Wed, 4 Oct 2023 22:46:01 +0300 Subject: [PATCH] Add infrastructure docker build tests for management and signal (#1180) we are building an image for management and signal to be used in the docker compose tests --- .../workflows/test-infrastructure-files.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test-infrastructure-files.yml b/.github/workflows/test-infrastructure-files.yml index 2987c04b4..c2c4f7598 100644 --- a/.github/workflows/test-infrastructure-files.yml +++ b/.github/workflows/test-infrastructure-files.yml @@ -112,6 +112,27 @@ jobs: grep -A 6 PKCEAuthorizationFlow management.json | grep -A 5 ProviderConfig | grep TokenEndpoint | grep $CI_NETBIRD_AUTH_TOKEN_ENDPOINT grep -A 7 PKCEAuthorizationFlow management.json | grep -A 6 ProviderConfig | grep Scope | grep "$CI_NETBIRD_AUTH_SUPPORTED_SCOPES" + - name: Install modules + run: go mod tidy + + - name: Build management binary + working-directory: management + run: CGO_ENABLED=1 go build -o netbird-mgmt main.go + + - name: Build management docker image + working-directory: management + run: | + docker build -t netbirdio/management:latest . + + - name: Build signal binary + working-directory: signal + run: CGO_ENABLED=0 go build -o netbird-signal main.go + + - name: Build signal docker image + working-directory: signal + run: | + docker build -t netbirdio/signal:latest . + - name: run docker compose up working-directory: infrastructure_files run: |