Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7879558df | |||
| 47084abc47 | |||
| ecdea4d07c | |||
| 628f84c14b | |||
| a52d2c9fe9 | |||
| 32bce2cdd2 |
@@ -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,11 +41,12 @@ jobs:
|
||||
tag="${RELEASE_TAG:-$REF_NAME}"
|
||||
tag="${tag#v}"
|
||||
dotnet publish DevOpsTest.csproj \
|
||||
-v:n \
|
||||
--configuration Release \
|
||||
--os linux \
|
||||
--arch x64 \
|
||||
/t:PublishContainer \
|
||||
-p:ContainerRegistry="$REGISTRY" \
|
||||
-p:ContainerRepository="$IMAGE_NAME" \
|
||||
-p:ContainerBaseImage=mcr-mirror.liara.ir/dotnet/aspnet:10.0 \
|
||||
-p:ContainerImageTags="$tag;latest"
|
||||
-p:ContainerBaseImage=mcr-mirror.liara.ir/dotnet/aspnet:10.0.202 \
|
||||
"-p:ContainerImageTags=$tag;latest"
|
||||
|
||||
@@ -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