Skip to content

Commit

Permalink
Fix deployment files (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: AceDataCloud <office@acedata.cloud>
  • Loading branch information
Germey and AceDataCloud authored Aug 3, 2024
1 parent 6c6bb33 commit 0736730
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install docker-compose
- name: Docker Login
uses: docker/login-action@v2
with:
Expand All @@ -35,15 +43,22 @@ jobs:
kubectl get nodes
kubectl get svc -n acedatacloud-test
- name: Set Build Number
run: echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
- name: Generate Build Number
uses: einaregilsson/build-number@v2
with:
token: ${{ secrets.github_token }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

- name: Get Build Number
run: |
echo $BUILD_NUMBER
- name: Build Push Deploy
run: |
docker-compose build
docker-compose push
sh ./deploy/test/scripts/deploy.sh
- name: Build Docker images
run: docker-compose build

- name: Push Docker images
run: docker-compose push

- name: Deploy
run: sh ./deploy/test/scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add test env support",
"packageName": "@acedatacloud/nexior",
"email": "office@acedata.cloud",
"dependentChangeType": "patch"
}

0 comments on commit 0736730

Please sign in to comment.