Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Add Git Action To Build and Push Ocular Backend To DockerHub !! (#169)
Browse files Browse the repository at this point in the history
* Add Git Action To Build and Push Ocular Backend  To DockerHub !!

* Update turbo.json

* Update docker-build-and-push-ocular-backend.yml

* Update docker-build-and-push-ocular-backend.yml

* Update docker-build-and-push-ocular-backend.yml

* Update docker-build-and-push-ocular-backend.yml
  • Loading branch information
louismurerwa authored Jul 16, 2024
1 parent 8dde98d commit c713aff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/docker-build-and-push-ocular-backend.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
Expand Down

0 comments on commit c713aff

Please sign in to comment.