This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Add Git Action To Build Ocular Backend On Push To Main Branch!! #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Ocular Backend Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Branch | |
uses: actions/checkout@v4 | |
- name: Set Up Docker Builders | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Ocular Backend Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./ | |
file: ./packages/ocular/Dockerfile.local | |
push: false | |
tags: ocularengineering/ocular-backend:build |