Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

Added server image creation actions

appreciatedf451599d2c77
diff --git a/.github/actions b/.github/actions
new file mode 100644
index 00000000..3b45c72e
--- /dev/null
+++ b/.github/actions
@@ -0,0 +1,39 @@
+name: Build and Publish Docker Image
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ build_and_push:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out the repo
+ uses: actions/checkout@v2
+
+ - name: Log in to GitHub Container Registry
+ uses: docker/login-action@v1
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+
+ - name: Build and push
+ uses: docker/build-push-action@v2
+ with:
+ context: .
+ file: ./app/Dockerfile.server
+ push: true
+ tags: |
+ ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
+ ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
+
+ - name: Image digest
+ run: echo ${{ steps.build_and_push.outputs.digest }}