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