Skip to content

Commit

Permalink
Merge pull request #45 from leojonathanoh/enhancement/ci-use-docker-i…
Browse files Browse the repository at this point in the history
…mage-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
  • Loading branch information
leojonathanoh committed Jun 16, 2024
2 parents 2338f7f + 5b19d85 commit 7b324e2
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 7b324e2

Please sign in to comment.