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