Skip to content

Commit

Permalink
Add GitHub Action - Push Docker Image into Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
baselhusam committed Sep 4, 2024
1 parent 5b4f74d commit a964993
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/push_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Push Image to Docker Hub

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build & Push Image
run: |
docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKERPW}}
docker image build -t baselhusam/damj:latest .
docker push baselhusam/damj:latest

0 comments on commit a964993

Please sign in to comment.