Skip to content

working directory

working directory #70

Workflow file for this run

name: CI For Concept Microservice
on:
push:
branches: [ version-upgrade ]
pull_request:
branches: [ version-upgrade ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix: { dir: [
'core-banking-service',
'internet-banking-fund-transfer-service',
'internet-banking-user-service',
'internet-banking-utility-payment-service',
'internet-banking-service-registry',
'internet-banking-api-gateway'
] }
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build
run: ./gradlew build -x test
working-directory: ${{ matrix.dir }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.dir }}-artifacts
path: |
${{ matrix.dir }}/build/libs/${{ matrix.dir }}*SNAPSHOT.jar
${{ matrix.dir }}/Dockerfile
${{ matrix.dir }}/wait-for-it.sh
retention-days: 1
overwrite: true
docker_publish:
runs-on: ubuntu-latest
strategy:
matrix: { dir: [
'core-banking-service',
'internet-banking-fund-transfer-service',
'internet-banking-user-service',
'internet-banking-utility-payment-service',
'internet-banking-service-registry',
'internet-banking-api-gateway'
] }
permissions:
contents: read
needs: build
steps:
- name: Download latest build artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.dir }}-artifacts
working-directory: ${{ matrix.dir }}

Check failure on line 70 in .github/workflows/gradle.yml

View workflow run for this annotation

GitHub Actions / CI For Concept Microservice

Invalid workflow file

The workflow is not valid. .github/workflows/gradle.yml (Line: 70, Col: 9): Unexpected value 'working-directory'
- name: Test
run: ls -lrt
working-directory: ${{ matrix.dir }}
- name: Build Docker image
run: docker build -t ghcr.io/javatodev/${{ matrix.dir }} .
working-directory: ${{ matrix.dir }}
# with:
# name: ${{ matrix.dir }}-artifacts
#
#
# - name: Build Docker image
# run: docker build -t ghcr.io/socialic-v2-0/socialic-connector-service:latest .
#
# - name: Log in to GitHub Container Registry
# run: echo ${{ secrets.DOCKER_ACTION_TOKEN }} | docker login ghcr.io -u chinthaka-dinadasa --password-stdin
#
# - name: Push Docker image to GitHub Container Registry
# run: docker push ghcr.io/socialic-v2-0/socialic-connector-service:latest