Skip to content

Commit

Permalink
Split CI/CD. Bump minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienCourt authored and EmilienCourt committed Oct 30, 2024
1 parent 6dd29fe commit 2dfddcc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/docker-image.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Docker image to Dockerhub

on:
push:
branches:
- 'main'

jobs:
push_to_dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: DockerHub Login
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_REPO }}

- name: DockerHub Push
run: docker push ${{ secrets.DOCKERHUB_REPO }}
14 changes: 14 additions & 0 deletions .github/workflows/psgallery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish module to PowerShell Gallery

on:
push:
branches:
- 'main'

jobs:
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
2 changes: 1 addition & 1 deletion DFIR-O365RC/DFIR-O365RC.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RootModule = '.\DFIR-O365RC.psm1'

# Version number of this module.
ModuleVersion = '2.0.0'
ModuleVersion = '2.0.1'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down

0 comments on commit 2dfddcc

Please sign in to comment.