Skip to content

Commit

Permalink
fix: add missing argument to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ajutamangdev committed Sep 11, 2024
1 parent 0315023 commit 5c802e0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/image_build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Build Docker Image
name: Build and Push Docker Image
on:
push:
branches:
- main

jobs:
build:
name: push docker image to docker hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
ls -la
docker build -t ${{secrets.DOCKERHUB_USERNAME}}/s3khoj:latest
- name: push the docker image
id: push-docker-image
run: docker push ${{secrets.DOCKERHUB_USERNAME}}/s3khoj:latest
build:
name: Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build the Docker image
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/s3khoj:latest .
- name: Push the Docker image
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/s3khoj:latest

0 comments on commit 5c802e0

Please sign in to comment.