Skip to content

Commit

Permalink
ci: static files not being built with Homebrew and dirty binary. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crunchtime-ali authored Aug 19, 2020
1 parent c840adb commit 9292ae1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
env:
GOPATH: /home/runner/go
PROFILE: mysql
STATIC_FILES: false
run: |
echo '127.0.0.1 dex' | sudo tee -a /etc/hosts
echo '127.0.0.1 minio' | sudo tee -a /etc/hosts
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ git-ask-pass.sh
/pkg/apiclient/workflowtemplate/workflow-template.swagger.json
/site/
/node_modules/
/.brew_home
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ CONTROLLER_IMAGE_FILE := dist/controller-image.marker

# perform static compilation
STATIC_BUILD ?= true
CI ?= false
STATIC_FILES ?= true
PROFILE ?= minimal
# whether or not to start the Argo Service in TLS mode
SECURE := false
AUTH_MODE := hybrid
ifeq ($(PROFILE),sso)
AUTH_MODE := sso
endif
ifeq ($(CI),true)
ifeq ($(STATIC_FILES),false)
AUTH_MODE := client
endif
K3D := $(shell if [ "`which kubectl`" != '' ] && [ "`kubectl config current-context`" = "k3s-default" ]; then echo true; else echo false; fi)
Expand All @@ -66,7 +66,7 @@ ifeq ($(PROFILE),postgres)
ALWAYS_OFFLOAD_NODE_STATUS := true
endif

ifeq ($(CI),true)
ifeq ($(STATIC_FILES),false)
TEST_OPTS := -coverprofile=coverage.out
else
TEST_OPTS :=
Expand Down Expand Up @@ -140,7 +140,7 @@ cli: dist/argo argo-server.crt argo-server.key
ui/dist/node_modules.marker: ui/package.json ui/yarn.lock
# Get UI dependencies
@mkdir -p ui/node_modules
ifeq ($(CI),false)
ifeq ($(STATIC_FILES),true)
yarn --cwd ui install
endif
@mkdir -p ui/dist
Expand All @@ -149,7 +149,7 @@ endif
ui/dist/app/index.html: ui/dist/node_modules.marker $(UI_FILES)
# Build UI
@mkdir -p ui/dist/app
ifeq ($(CI),false)
ifeq ($(STATIC_FILES),true)
yarn --cwd ui build
else
echo "Built without static files" > ui/dist/app/index.html
Expand Down Expand Up @@ -314,7 +314,7 @@ lint: server/static/files.go $(GOPATH)/bin/golangci-lint
# Lint Go files
golangci-lint run --fix --verbose --concurrency 4 --timeout 5m
# Lint UI files
ifeq ($(CI),false)
ifeq ($(STATIC_FILES),true)
yarn --cwd ui lint
endif

Expand Down

0 comments on commit 9292ae1

Please sign in to comment.