diff --git a/.github/workflows/docker-ncp-build.yml b/.github/workflows/docker-ncp-build.yml index 23223f1..39e2f0f 100644 --- a/.github/workflows/docker-ncp-build.yml +++ b/.github/workflows/docker-ncp-build.yml @@ -58,7 +58,7 @@ jobs: password: ${{ secrets.DEPLOYMENT_PASSWORD }} port: ${{ secrets.DEPLOYMENT_PORT }} script: | - docker login -u ${{ secrets.NCP_ACCESS_KEY }} --password-stdin ${{ secrets.NCP_SECRET_KEY }} ${{ secrets.NCP_CONTAINER_REGISTRY }} + docker login -u ${{ secrets.NCP_ACCESS_KEY }} -p ${{ secrets.NCP_SECRET_KEY }} ${{ secrets.NCP_CONTAINER_REGISTRY }} docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/tag-name docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) diff --git a/.gitignore b/.gitignore index c2065bc..f158f96 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ out/ ### VS Code ### .vscode/ + + +.env.* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e1c86aa..53c4b8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ RUN chmod +x gradlew RUN ./gradlew clean build # CMD ["./gradlew", "clean", "build"] -RUN ls ./build -R # Assuming build is successful, copy the JAR file to the root ARG JAR_FILE=./build/libs/*.jar RUN cp ${JAR_FILE} /app.jar