Skip to content

Added permissions for mvnw #6

Added permissions for mvnw

Added permissions for mvnw #6

Workflow file for this run

name: CI/CD Pipeline
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup JDK 21
uses: actions/setup-java@v2
with:
distribution: 'zulu'
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