ci(aria): build+push only, drop deploy + embedded sonar (manual deploy; #12)
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
build-and-scan:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GIT_SSL_NO_VERIFY: 'true'
|
||||
@@ -113,23 +113,3 @@ jobs:
|
||||
-u ${{ secrets.DEV_REGISTRY_USERNAME }} --password-stdin
|
||||
docker build -t ${{ secrets.DEV_REGISTRY_URL }}/hiveiq-aria:dev .
|
||||
docker push ${{ secrets.DEV_REGISTRY_URL }}/hiveiq-aria:dev
|
||||
|
||||
- name: Deploy to bcos.dev
|
||||
continue-on-error: true
|
||||
env:
|
||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
run: |
|
||||
apt-get install -y -qq openssh-client
|
||||
mkdir -p ~/.ssh
|
||||
echo "$DEPLOY_SSH_KEY" > ~/.ssh/deploy_key
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
ssh-keyscan -H ${{ secrets.DEV_HOST }} >> ~/.ssh/known_hosts 2>&1
|
||||
ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEV_HOST }} \
|
||||
"cd ~/hiveiq/hiveops-openmetal/hiveops/instances/dev && \
|
||||
REGISTRY_URL=${{ secrets.DEV_REGISTRY_URL }} ARIA_VERSION=dev \
|
||||
docker compose pull hiveiq-aria && \
|
||||
REGISTRY_URL=${{ secrets.DEV_REGISTRY_URL }} ARIA_VERSION=dev \
|
||||
docker compose up -d hiveiq-aria"
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: rm -f ~/.ssh/deploy_key
|
||||
|
||||
Reference in New Issue
Block a user