Skip to content

Commit

Permalink
fix: the workflows for gcr and dockerhub is fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Oct 16, 2024
1 parent bd07443 commit 3ca94a2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/publish-to-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Push Docker Image to GCR

on:
push:
branches:
- "**" # This triggers on every push to any branch

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Login to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin

- name: Build the Docker image
run: docker build -t surajkumar00/flashfathom-ai .

- name: Push the Docker image to DockerHub
run: docker push surajkumar00/flashfathom-ai
10 changes: 5 additions & 5 deletions .github/workflows/pulish-to-gcr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Push Docker Image
name: Build and Push Docker Image to GCR

on:
push:
branches:
- '**' # This triggers on every push to any branch
- "**" # This triggers on every push to any branch

jobs:
build:
Expand All @@ -18,12 +18,12 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }} # Use your Personal Access Token here
password: ${{ secrets.PAT_TOKEN }} # Use your Personal Access Token here

- name: Build the Docker image
run: |
docker build . -t ghcr.io/suraj-kumar00/flashfathomai:latest
docker build . -t ghcr.io/suraj-kumar00/flash-fathom-ai:latest
- name: Push the Docker image
run: |
docker push ghcr.io/suraj-kumar00/flashfathomai:latest
docker push ghcr.io/suraj-kumar00/flash-fathom-ai:latest

0 comments on commit 3ca94a2

Please sign in to comment.