Skip to content

Commit

Permalink
Enhancement (ci): Use docker image for test-publish-to-psgallery an…
Browse files Browse the repository at this point in the history
…d `publish-to-psgallery` jobs
  • Loading branch information
leojonathanoh committed Jun 16, 2024
1 parent 3233697 commit 1fc8f16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,24 @@ jobs:

test-publish-to-psgallery:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install wget
run: |
apt-get update && apt-get install -y wget
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6'
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Publish (dry run)
shell: pwsh
env:
Expand All @@ -187,13 +198,24 @@ jobs:
- test-publish-to-psgallery
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install wget
run: |
apt-get update && apt-get install -y wget
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6'
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Publish
shell: pwsh
env:
Expand Down

0 comments on commit 1fc8f16

Please sign in to comment.