-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ixes #12 )
- Loading branch information
James Brundage
committed
Dec 17, 2024
1 parent
7da03cc
commit 19246cd
Showing
5 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#requires -Module PSDevOps | ||
Import-BuildStep -SourcePath ( | ||
Join-Path $PSScriptRoot 'GitHub' | ||
) -BuildSystem GitHubWorkflow | ||
|
||
Push-Location ($PSScriptRoot | Split-Path) | ||
New-GitHubWorkflow -Name "Build GQL" -On Push, | ||
PullRequest, | ||
Demand -Job TestPowerShellOnLinux, | ||
TagReleaseAndPublish, BuildGQL -OutputPath .\.github\workflows\BuildGQL.yml | ||
|
||
Pop-Location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@{ | ||
"runs-on" = "ubuntu-latest" | ||
if = '${{ success() }}' | ||
steps = @( | ||
@{ | ||
name = 'Check out repository' | ||
uses = 'actions/checkout@v2' | ||
}, | ||
@{ | ||
name = 'GitLogger' | ||
uses = 'GitLogging/GitLoggerAction@main' | ||
id = 'GitLogger' | ||
}, | ||
@{ | ||
name = 'Use PSSVG Action' | ||
uses = 'StartAutomating/PSSVG@main' | ||
id = 'PSSVG' | ||
}, | ||
@{ | ||
name = 'Use PipeScript Action' | ||
uses = 'StartAutomating/PipeScript@main' | ||
id = 'PipeScript' | ||
}, | ||
'RunEZOut', | ||
'RunHelpOut' | ||
<#@{ | ||
name = 'Run HtmxPS (on branch)' | ||
if = '${{github.ref_name != ''main''}}' | ||
uses = './' | ||
id = 'ActionOnBranch' | ||
},#> | ||
'BuildAndPublishContainer' | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@{ | ||
'name'='Log in to ghcr.io' | ||
'uses'='docker/login-action@master' | ||
'with'=@{ | ||
'registry'='${{ env.REGISTRY }}' | ||
'username'='${{ github.actor }}' | ||
'password'='${{ secrets.GITHUB_TOKEN }}' | ||
} | ||
env = @{ | ||
'REGISTRY'='ghcr.io' | ||
} | ||
} | ||
@{ | ||
name = 'Extract Docker Metadata (for branch)' | ||
if = '${{github.ref_name != ''main'' && github.ref_name != ''master'' && github.ref_name != ''latest''}}' | ||
id = 'meta' | ||
uses = 'docker/metadata-action@master' | ||
with = @{ | ||
'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}' | ||
} | ||
env = @{ | ||
REGISTRY = 'ghcr.io' | ||
IMAGE_NAME = '${{ github.repository }}' | ||
} | ||
} | ||
@{ | ||
name = 'Extract Docker Metadata (for main)' | ||
if = '${{github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest''}}' | ||
id = 'metaMain' | ||
uses = 'docker/metadata-action@master' | ||
with = @{ | ||
'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}' | ||
'flavor'='latest=true' | ||
} | ||
} | ||
@{ | ||
name = 'Build and push Docker image (from main)' | ||
if = '${{github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest''}}' | ||
uses = 'docker/build-push-action@master' | ||
with = @{ | ||
'context'='.' | ||
'push'='true' | ||
'tags'='${{ steps.metaMain.outputs.tags }}' | ||
'labels'='${{ steps.metaMain.outputs.labels }}' | ||
} | ||
} | ||
@{ | ||
name = 'Build and push Docker image (from branch)' | ||
if = '${{github.ref_name != ''main'' && github.ref_name != ''master'' && github.ref_name != ''latest''}}' | ||
uses = 'docker/build-push-action@master' | ||
with = @{ | ||
'context'='.' | ||
'push'='true' | ||
'tags'='${{ steps.meta.outputs.tags }}' | ||
'labels'='${{ steps.meta.outputs.labels }}' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@{ | ||
name = 'PublishTestResults' | ||
uses = 'actions/upload-artifact@v3' | ||
with = @{ | ||
name = 'PesterResults' | ||
path = '**.TestResults.xml' | ||
} | ||
if = '${{always()}}' | ||
} | ||
|