From cb58d66b87607262bee1cae30a733678f4ba3036 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Wed, 11 Feb 2026 23:08:20 -0700 Subject: [PATCH] Add astro.yml --- astro.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 astro.yml diff --git a/astro.yml b/astro.yml new file mode 100644 index 0000000..1b1b7c7 --- /dev/null +++ b/astro.yml @@ -0,0 +1,36 @@ +name: Ascently - Docs Deploy +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ secrets.REPO_HOST }} + username: ${{ github.repository_owner }} + password: ${{ secrets.DEPLOY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: ./docs + platforms: linux/amd64 + push: true + tags: | + ${{ secrets.REPO_HOST }}/${{ github.repository_owner }}/ascently-docs:${{ github.sha }} + ${{ secrets.REPO_HOST }}/${{ github.repository_owner }}/ascently-docs:latest