From 50087853b81f233f3f50c8f63a0e49518d32dc80 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 22 Aug 2023 00:25:26 +0800 Subject: [PATCH] test ci --- action.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/action.yml b/action.yml index 49a62e9..f6740d9 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,9 @@ description: 'build docker image and push to simcu code' runs: using: 'composite' steps: - # - uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 - # with: - # args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App + - uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 + with: + args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App - uses: https://github.com/docker/login-action@v2.2.0 with: @@ -23,14 +23,14 @@ runs: ls cat Dockerfile - - uses: docker://docker:git - with: - args: docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . + - shell: sh + run: | + docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . - - uses: docker://docker:git - with: - args: docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} + - shell: sh + run: | + docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} - - uses: docker://docker:git - with: - args: docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} + - shell: sh + run: | + docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}