11
11
workflow_dispatch :
12
12
env :
13
13
DOTNET_NOLOGO : true
14
+ defaults :
15
+ run :
16
+ shell : pwsh
14
17
jobs :
15
18
windows-standalone :
16
19
if : ${{ github.actor != 'dependabot[bot]' }}
19
22
- name : Check for secrets
20
23
env :
21
24
SECRETS_AVAILABLE : ${{ secrets.SECRETS_AVAILABLE }}
22
- shell : pwsh
23
25
run : exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 })
24
26
- name : Checkout
25
27
@@ -107,12 +109,11 @@ jobs:
107
109
name : linux-container
108
110
defaults :
109
111
run :
110
- shell : bash
112
+ shell : pwsh
111
113
steps :
112
114
- name : Check for secrets
113
115
env :
114
116
SECRETS_AVAILABLE : ${{ secrets.SECRETS_AVAILABLE }}
115
- shell : pwsh
116
117
run : exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 })
117
118
- name : Checkout
118
119
@@ -121,7 +122,6 @@ jobs:
121
122
- name : Install MinVer CLI
122
123
run : dotnet tool install --global minver-cli
123
124
- name : Determine version
124
- shell : pwsh
125
125
run : |
126
126
# Read settings from Custom.Build.props
127
127
[xml]$xml = Get-Content ./src/Custom.Build.props
@@ -131,7 +131,7 @@ jobs:
131
131
if (-not ($minMajorMinor -and $autoIncrement)) {
132
132
throw "Missing MinVer settings in Custom.Build.props"
133
133
}
134
-
134
+
135
135
# Execute MinVer
136
136
echo "MinVerVersion=$(minver --minimum-major-minor $minMajorMinor --auto-increment $autoIncrement)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
137
137
- name : Validate build version
@@ -142,10 +142,12 @@ jobs:
142
142
- name : Set up Docker Buildx
143
143
144
144
- name : Log in to GitHub container registry
145
+ shell : bash
145
146
run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
146
147
- name : Build & inspect image
147
148
env :
148
149
TAG_NAME : ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || env.MinVerVersion }}
150
+ shell : bash
149
151
run : |
150
152
docker buildx build --push --tag ghcr.io/particular/servicepulse:${{ env.TAG_NAME }} \
151
153
--file src/ServicePulse/Dockerfile \
0 commit comments