Skip to content

refactor: Change permission to read only #78

refactor: Change permission to read only

refactor: Change permission to read only #78

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches:
- master
permissions:
read: all

Check failure on line 9 in .github/workflows/action.yaml

View workflow run for this annotation

GitHub Actions / Java CI with Gradle

Invalid workflow file

The workflow is not valid. .github/workflows/action.yaml (Line: 9, Col: 3): Unexpected value 'read'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-disabled: true
- name: Execute Gradle build
run: ./gradlew --no-daemon clean build
- name: Execute Gradle unit test
run: ./gradlew test
- name: Build docker image
run: ./gradlew --no-daemon jibDockerBuild
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push docker image
run: ./gradlew --no-daemon dockerPush