diff --git a/.github/workflows/docker-build-and-push-ocular-backend.yml b/.github/workflows/docker-build-and-push-ocular-backend.yml new file mode 100644 index 0000000..d8112e3 --- /dev/null +++ b/.github/workflows/docker-build-and-push-ocular-backend.yml @@ -0,0 +1,34 @@ +name: Build and Push Ocular Backend Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + push_to_docker_registry: + name: Push Ocular Backend To Docker Hub + runs-on: ubuntu-latest + + steps: + - name: Check Out Branch + uses: actions/checkout@v4 + + - name: Log In To Docker + uses: docker/login-action@v3 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Set Up Docker Builders + uses: docker/setup-buildx-action@v3 + + - name: Build and Push Ocular Backend Image + uses: docker/build-push-action@v6 + with: + context: ./ + file: ./packages/ocular/Dockerfile.local + push: true + tags: + ocularengineering/ocular-backend:latest diff --git a/turbo.json b/turbo.json index ba36416..8cd115b 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "pipeline": { + "tasks": { "build": { "dependsOn": ["^build"], "outputs": [".next/**", "!.next/cache/**"]