Skip to content

Commit 4ce8110

Browse files
committed
update cicd and start script
1 parent 092e76f commit 4ce8110

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77
- generator*
88
paths:
9-
- deployment-generator/**
9+
- container-manager/**
1010
tags:
1111
- '*'
1212
workflow_dispatch: #allow manual trigger to workflow
@@ -18,7 +18,7 @@ jobs:
1818
environment: DockerHub
1919
defaults:
2020
run:
21-
working-directory: deployment-generator
21+
working-directory: container-manager/
2222
steps:
2323
- name: Check out code
2424
uses: actions/checkout@v3
@@ -41,8 +41,8 @@ jobs:
4141
4242
- name: Build and push image
4343
run: |
44-
docker build . --file docker/Dockerfile \
45-
--build-arg SUBNET_BRANCH=${{ steps.commit.outputs.commit}} \
44+
docker build . --file Dockerfile \
45+
--build-arg SUBNET_BRANCH=${{ steps.commit.outputs.commit}} \
4646
--build-arg IMAGE_NAME=${{ steps.image.outputs.name }} \
4747
--tag ${{ steps.image.outputs.name }}
4848
docker push ${{ steps.image.outputs.name }}

container-manager/start.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ docker run -d \
1717
-v /var/run/docker.sock:/var/run/docker.sock \
1818
-v $current_dir/generated:/mount/generated \
1919
-e HOSTPWD=$current_dir/generated \
20-
api-test \
20+
xinfinorg/subnet-generator:latest \
2121
&& \
22-
echo 'go to http://localhost:5210 to access Subnet Configuration Generator UI' && \
23-
echo 'or use ssh tunnel if this is running on your server' && \
24-
echo 'ssh -N -L localhost:5210:localhost:5210 <username>@<ip_address> -i <private_key_file>'
22+
echo 'if this is running on your server, first use ssh tunnel: ssh -N -L localhost:5210:localhost:5210 <username>@<ip_address> -i <private_key_file>' && \
23+
echo 'Open http://localhost:5210 to access Subnet Deployment Wizard'

0 commit comments

Comments
 (0)