diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1b273a3..af34ff5 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,3 +40,34 @@ jobs: - name: Ensure build and bundle info run: npx quartz build --bundleInfo + + docker-build: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: ${{ secrets.REGISTRY_URL }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ secrets.REGISTRY_URL }}/dgroothuis/digital-garden:${{ gitea.sha }},${{ secrets.REGISTRY_URL }}/dgroothuis/digital-garden:latest + + deploy: + needs: docker-build + runs-on: ubuntu-latest + steps: + - name: Fake Deploy + run: echo "Deploying"