ci5
This commit is contained in:
@@ -16,9 +16,14 @@ jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
shell: bash
|
||||
run: |
|
||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||
|
||||
- name: Build and push image
|
||||
shell: bash
|
||||
env:
|
||||
@@ -36,6 +41,7 @@ jobs:
|
||||
tag="${RELEASE_TAG:-$REF_NAME}"
|
||||
tag="${tag#v}"
|
||||
dotnet publish DevOpsTest.csproj \
|
||||
-v:n \
|
||||
--configuration Release \
|
||||
--os linux \
|
||||
--arch x64 \
|
||||
|
||||
@@ -19,9 +19,14 @@ jobs:
|
||||
pack-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
shell: bash
|
||||
run: |
|
||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||
|
||||
- name: Restore selected projects
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user