Skip to content

Commit

Permalink
Added changes to ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phaniallamsetty committed Jan 2, 2025
1 parent cb5d367 commit 3a00891
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
name: CI/CD Pipeline

on:
push:
branches:
- *

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'

- name: Build with Maven
run: ./mvnw clean package -DskipTests

- name: Login into Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
run: |
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/bucket4j-rate-limiter:latest .
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/bucket4j-rate-limiter:latest

0 comments on commit 3a00891

Please sign in to comment.