Skip to content

Commit 890dac5

Browse files
committed
Don't build installer before run it
1 parent 11c7219 commit 890dac5

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

.github/workflows/principal-installer-deploy.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,8 @@ jobs:
2727
if: needs.check_env.outputs.env == 'dev'
2828
runs-on: dev
2929
steps:
30-
- name: Check out code into the right branch
31-
uses: actions/checkout@v4
32-
with:
33-
ref: ${{ github.event.workflow_run.head_branch }}
34-
35-
- name: Set up Go 1.x
36-
uses: actions/setup-go@v4
37-
with:
38-
go-version: ^1.20
39-
id: go
40-
41-
- name: Build and Execute Installer
42-
working-directory: ./installer
30+
- name: Execute Installer
4331
run: |
44-
go get -v -t -d ./...
45-
if [ -f Gopkg.toml ]; then
46-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
47-
dep ensure
48-
fi
49-
go test -v .
50-
export GOOS=linux
51-
export GOARCH=amd64
52-
go build -o installer -v .
53-
mv installer /home/utmstack/installer
54-
chmod +x /home/utmstack/installer
5532
cd /home/utmstack
5633
sudo ./installer
5734
sudo docker service update --publish-add 9200:9200 utmstack_node1 & docker service update --publish-add 5432:5432 utmstack_postgres

0 commit comments

Comments
 (0)