Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samirabawad authored Oct 24, 2024
1 parent 0cdf251 commit e5d1d71
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/#-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build the Docker image
run: |
docker build . -t samirabawad/apidocker:latest
- name: Push the Docker image
run: |
docker push samirabawad/apidocker:latest

0 comments on commit e5d1d71

Please # to comment.