Skip to content

Commit

Permalink
feat: add first pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-muscatello-zupit committed Feb 7, 2024
1 parent 0bbc6b6 commit e7270c3
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 3 deletions.
Empty file.
35 changes: 35 additions & 0 deletions .github/workflows/release-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release common workflow

on:
workflow_call:
inputs:
CONTAINER_CI_LABELS:
required: true
type: string
WORKING_DIRECTORY:
required: true
type: string
PROJECT:
required: true
type: string
DOTNET_IMAGE:
required: true
type: string

jobs:
release:
runs-on: ${{ fromJson(inputs.CONTAINER_CI_LABELS) }}
container:
image: ${{ inputs.DOTNET_IMAGE }}
defaults:
run:
working-directory: ${{ inputs.WORKING_DIRECTORY }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create NuGet package
run: dotnet pack -c Release -o ./artifacts ${{ inputs.PROJECT }}


19 changes: 19 additions & 0 deletions .github/workflows/release-version-endpoint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release version endpoint workflow

on:
push:
branches:
- main
- release/**
paths:
- Zupit.DotNet/VersionEndpoint/**
workflow_call:

jobs:
release-versionendpoint:
uses: ./.github/workflows/release-common.yml
with:
CONTAINER_CI_LABELS: "['zupit', 'pipeline', 'container', 'size-large']"
WORKING_DIRECTORY: Zupit.DotNet
PROJECT: 'Zupit.DotNet/VersionEndpoint'
DOTNET_IMAGE: 'mcr.microsoft.com/dotnet/sdk:8.0'
6 changes: 3 additions & 3 deletions Zupit.DotNet/Zupit.DotNet.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint", "Zupit.VersionEndpoint\Zupit.VersionEndpoint.csproj", "{39181597-C782-4722-A6D6-CFF15A8E3458}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint", "VersionEndpoint\Zupit.VersionEndpoint\Zupit.VersionEndpoint.csproj", "{39181597-C782-4722-A6D6-CFF15A8E3458}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "VersionEndpoint", "VersionEndpoint", "{AAF352DC-9F80-4062-B719-B626F421017E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.Tests", "Zupit.VersionEndpoint.Tests\Zupit.VersionEndpoint.Tests.csproj", "{28B19A67-88AF-43E1-939D-0B6F0DC7163B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.Tests", "VersionEndpoint\Zupit.VersionEndpoint.Tests\Zupit.VersionEndpoint.Tests.csproj", "{28B19A67-88AF-43E1-939D-0B6F0DC7163B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.TestApp", "Zupit.VersionEndpoint.TestApp\Zupit.VersionEndpoint.TestApp.csproj", "{BF03B32D-12BD-4086-857D-579B634CC537}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.TestApp", "VersionEndpoint\Zupit.VersionEndpoint.TestApp\Zupit.VersionEndpoint.TestApp.csproj", "{BF03B32D-12BD-4086-857D-579B634CC537}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit e7270c3

Please sign in to comment.