From 82db4acb7d23d78d4d24206818a0cd12fbc98d43 Mon Sep 17 00:00:00 2001 From: Igor Gov Date: Mon, 31 Jan 2022 14:54:35 +0200 Subject: [PATCH] Build agent docker image during CI (#725) --- .github/workflows/pr_validation.yml | 30 +++-------------------------- Makefile | 4 ++++ 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index 09559f72a..afb7ee132 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -12,7 +12,7 @@ concurrency: jobs: build-cli: - name: Build CLI + name: Build CLI executable runs-on: ubuntu-latest steps: - name: Set up Go 1.16 @@ -27,35 +27,11 @@ jobs: run: make cli build-agent: - name: Build Agent + name: Build Agent docker image runs-on: ubuntu-latest steps: - - name: Set up Go 1.16 - uses: actions/setup-go@v2 - with: - go-version: '1.16' - - name: Check out code into the Go module directory uses: actions/checkout@v2 - - shell: bash - run: | - sudo apt-get install libpcap-dev - - name: Build Agent - run: make agent - - build-ui: - name: Build UI - runs-on: ubuntu-latest - steps: - - name: Set up Node 16 - uses: actions/setup-node@v2 - with: - node-version: '16' - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Build UI - run: make ui + run: make agent-docker diff --git a/Makefile b/Makefile index 3db572a08..e84159a45 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,10 @@ agent-debug: ## Build agent for debug. docker: ## Build and publish agent docker image. $(MAKE) push-docker +agent-docker: ## Build agent docker image. + @echo "Building agent docker image" + @docker build -t up9inc/mizu:devlatest . + push: push-docker push-cli ## Build and publish agent docker image & CLI. push-docker: ## Build and publish agent docker image.