Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32bce2cdd2 | |||
| 490ed3815f | |||
| 97d20d3c8a |
@@ -10,14 +10,20 @@ env:
|
||||
IMAGE_NAME: sabp-apps/devops-test
|
||||
RELEASE_TAG: ${{ gitea.event.release.tag_name }}
|
||||
REF_NAME: ${{ gitea.ref_name }}
|
||||
REPOSITORY: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:9.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:
|
||||
@@ -35,6 +41,7 @@ jobs:
|
||||
tag="${RELEASE_TAG:-$REF_NAME}"
|
||||
tag="${tag#v}"
|
||||
dotnet publish DevOpsTest.csproj \
|
||||
-v:n \
|
||||
--configuration Release \
|
||||
--os linux \
|
||||
--arch x64 \
|
||||
|
||||
@@ -13,14 +13,20 @@ env:
|
||||
PACKAGE_PROJECTS: DevOpsPackageTest/DevOpsPackageTest.csproj
|
||||
RELEASE_TAG: ${{ gitea.event.release.tag_name }}
|
||||
REF_NAME: ${{ gitea.ref_name }}
|
||||
REPOSITORY: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
pack-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:9.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