diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 90e2fa2..b1b74f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,14 +2,14 @@ name: deploy on: push: branches: - - 'dev' + - "dev" jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build and Publish - uses: VaultVulp/gp-docker-action@1.1.8 + uses: VaultVulp/gp-docker-action@1.2.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} image-name: fastapi-admin @@ -19,8 +19,13 @@ jobs: - build steps: - name: Deploy - uses: actions-hub/kubectl@master - env: - KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + uses: appleboy/ssh-action@master with: - args: rollout restart deployment fastapi-admin + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + port: ${{ secrets.PORT }} + script: | + cd /root/docker/fastapi-admin/ + docker compose pull + docker compose up -d diff --git a/examples/templates/base.html b/examples/templates/base.html index e90150c..4cc5fe0 100644 --- a/examples/templates/base.html +++ b/examples/templates/base.html @@ -1,8 +1,9 @@ + - + @@ -10,33 +11,37 @@ {% if request.app.favicon_url %} - + {% endif %} + crossorigin="anonymous"> {% block head %} - - + + - gtag('js', new Date()); - gtag('config', 'G-T7MFB9RV5E'); - {% endblock %} {{ title }} {% block outer_body %} - + + {% block body %} {% endblock %} - + {% endblock %} - + + \ No newline at end of file