diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index e617dc1..c728412 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -12,7 +12,8 @@ jobs: matrix: service: [core, auth, gateway, chat, notification] steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 @@ -35,7 +36,7 @@ jobs: run: | mkdir -p ./${{ matrix.service }}/src/main/resources touch ./${{ matrix.service }}/src/main/resources/application.yml - echo "${{ secrets[format('APPLICATION_{0}', matrix.service | upper)] }}" > ./${{ matrix.service }}/src/main/resources/application.yml + echo "${{ secrets[format('APPLICATION_{0}', matrix.service)] }}" > ./${{ matrix.service }}/src/main/resources/application.yml - name: Build Service with Gradle run: | @@ -56,7 +57,7 @@ jobs: file: ./${{ matrix.service }}/Dockerfile platforms: linux/arm64/v8 push: true - tags: ${{ secrets[format('DOCKER_REPO_{0}', matrix.service | upper)] }}:v2 + tags: ${{ secrets[format('DOCKER_REPO_{0}', matrix.service)] }}:v2 - name: Deploy to Server uses: appleboy/ssh-action@master @@ -66,6 +67,6 @@ jobs: key: ${{ secrets.KEY }} script: | echo "${{ secrets.DOCKER_COMPOSE }}" | sudo tee ./docker-compose.yml - sudo docker pull ${{ secrets[format('DOCKER_REPO_{0}', matrix.service | upper)] }}:v2 + sudo docker pull ${{ secrets[format('DOCKER_REPO_{0}', matrix.service)] }}:v2 sudo docker-compose -f ./docker-compose.yml up -d sudo docker image prune -f