Skip to content

Added changes to ci-cd.yml #3

Added changes to ci-cd.yml

Added changes to ci-cd.yml #3

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- *

Check failure on line 6 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
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