Build agent docker image during CI (#725)

This commit is contained in:
Igor Gov 2022-01-31 14:54:35 +02:00 committed by GitHub
parent 9bd82191aa
commit 82db4acb7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 27 deletions

View File

@ -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

View File

@ -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.