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

Add Git Action To Build and Push Ocular UI On Push To Main Branch #170

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/docker-build-and-push-ocular-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Push Ocular Web UI Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
push_to_docker_registry:
name: Push Ocular Web UI 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-ui/Dockerfile
push: true
tags:
ocularengineering/ocular-ui:latest