Skip to content

⚗️ test: trigger the CI and add the PR branch #1

⚗️ test: trigger the CI and add the PR branch

⚗️ test: trigger the CI and add the PR branch #1

Workflow file for this run

---
name: CI/CD pipeline for building Docker image
on:
push:
branches:
- main
- 5-feat-add-cicd-to-build-image-and-push-it-to-dockerhub
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: docker build -t mostafaghadimi/debezium_avro_integration:latest .
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image to Docker Hub
run: docker push mostafaghadimi/debezium_avro_integration:latest