Skip to content

Commit

Permalink
Add CI/CD to publish to PSGallery
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienCourt authored and EmilienCourt committed Oct 30, 2024
1 parent 98f14e2 commit 6dd29fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ jobs:
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_REPO }}

- name: Docker Push
run: docker push ${{ secrets.DOCKERHUB_REPO }}
run: docker push ${{ secrets.DOCKERHUB_REPO }}
push_to_psgallery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to PowerShell Gallery
run: docker run -v /home/runner/work/DFIR-O365RC/DFIR-O365RC:/mount_point mcr.microsoft.com/dotnet/sdk:8.0 pwsh -Command Publish-PSResource -Path "/mount_point/DFIR-O365RC" -Repository "PSGallery" -ApiKey "${{ secrets.PSGALLERY_TOKEN }}" -SkipModuleManifestValidate $true

0 comments on commit 6dd29fe

Please sign in to comment.