-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: the workflows for gcr and dockerhub is fix.
- Loading branch information
1 parent
bd07443
commit 3ca94a2
Showing
3 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
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