From a9b3723e7645d051ad86796db8cf2f2020ab1eb3 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 22 Aug 2023 12:04:52 +0800 Subject: [PATCH] test --- action.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/action.yml b/action.yml index 1cc21fe..289185e 100644 --- a/action.yml +++ b/action.yml @@ -6,18 +6,18 @@ runs: steps: - uses: docker://node:18 with: - entrypoint: "/bin/bash -c" + entrypoint: "/bin/bash" args: | - npm install - npm run build -- --outputPath=dist + -c "npm install" + -c " npm run build -- --outputPath=dist" - uses: docker://docker:git with: - entrypoint: "/bin/bash -c" + entrypoint: "/bin/bash" args: | - echo "FROM nginx:alpine" > Dockerfile - echo "COPY dist /usr/share/nginx/html" >> Dockerfile - echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile - docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . - docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} - docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} \ No newline at end of file + -c 'echo "FROM nginx:alpine" > Dockerfile' + -c 'echo "COPY dist /usr/share/nginx/html" >> Dockerfile' + -c 'echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile' + -c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} .' + -c 'docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}}' + -c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}' \ No newline at end of file