Skip to content

Commit 11e888c

Browse files
Merge pull request #74 from leojonathanoh/enhancement/ci-use-docker-image-for-test-publish-to-psgallery-and-publish-to-psgallery-jobs
Enhancement (ci): Use docker image for `test-publish-to-psgallery` and `publish-to-psgallery` jobs
2 parents 3233697 + 1fc8f16 commit 11e888c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci-master-pr.yml

+22
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,24 @@ jobs:
155155

156156
test-publish-to-psgallery:
157157
runs-on: ubuntu-latest
158+
container:
159+
image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
158160
steps:
159161
- uses: actions/checkout@v1
160162
with:
161163
submodules: true
164+
- name: Install wget
165+
run: |
166+
apt-get update && apt-get install -y wget
167+
- uses: actions/setup-dotnet@v4
168+
with:
169+
dotnet-version: '6'
162170
- name: Powershell version
163171
run: |
164172
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
173+
- name: Ignore git permissions
174+
run: |
175+
git config --global --add safe.directory "$( pwd )"
165176
- name: Publish (dry run)
166177
shell: pwsh
167178
env:
@@ -187,13 +198,24 @@ jobs:
187198
- test-publish-to-psgallery
188199
if: startsWith(github.ref, 'refs/tags/')
189200
runs-on: ubuntu-latest
201+
container:
202+
image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
190203
steps:
191204
- uses: actions/checkout@v1
192205
with:
193206
submodules: true
207+
- name: Install wget
208+
run: |
209+
apt-get update && apt-get install -y wget
210+
- uses: actions/setup-dotnet@v4
211+
with:
212+
dotnet-version: '6'
194213
- name: Powershell version
195214
run: |
196215
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
216+
- name: Ignore git permissions
217+
run: |
218+
git config --global --add safe.directory "$( pwd )"
197219
- name: Publish
198220
shell: pwsh
199221
env:

0 commit comments

Comments
 (0)