-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from StartAutomating/Irregular-Docker
Irregular 0.7.9
- Loading branch information
Showing
57 changed files
with
483 additions
and
1,495 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
File renamed without changes.
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,69 @@ | ||
@{ | ||
"runs-on" = "ubuntu-latest" | ||
if = '${{ success() }}' | ||
steps = @( | ||
@{ | ||
name = 'Check out repository' | ||
uses = 'actions/checkout@v2' | ||
}, | ||
@{ | ||
name = 'Use PSSVG Action' | ||
uses = 'StartAutomating/PSSVG@main' | ||
id = 'PSSVG' | ||
}, | ||
'UseIrregularAction', | ||
'RunPipeScript', | ||
'RunEZOut', | ||
'RunHelpOut', | ||
@{ | ||
'name'='Log in to ghcr.io' | ||
'uses'='docker/login-action@master' | ||
'with'=@{ | ||
'registry'='${{ env.REGISTRY }}' | ||
'username'='${{ github.actor }}' | ||
'password'='${{ secrets.GITHUB_TOKEN }}' | ||
} | ||
}, | ||
@{ | ||
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 }}' | ||
} | ||
}, | ||
@{ | ||
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 }}' | ||
} | ||
} | ||
) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
#requires -Modules PSDevOps | ||
|
||
Push-Location ($PSScriptRoot | Split-Path) | ||
|
||
New-ADOPipeline -Stage PowerShellStaticAnalysis, TestPowerShellCrossPlatform, UpdatePowerShellGallery | | ||
Set-Content .\azure-pipelines.yml -Encoding UTF8 | ||
|
||
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,12 @@ | ||
#requires -Module Irregular | ||
#requires -Module PSDevOps | ||
|
||
Import-BuildStep -SourcePath ( | ||
Join-Path $PSScriptRoot 'GitHub' | ||
) -BuildSystem GitHubAction | ||
|
||
Push-Location ($PSScriptRoot | Split-Path) | ||
|
||
New-GitHubAction -Name "UseIrregular" -Description 'Regular Expressions Made Strangle Simple' -Action Irregular -Icon cpu -OutputPath .\action.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,23 @@ | ||
#requires -Module PSDevOps | ||
Push-Location ($PSScriptRoot | Split-Path) | ||
|
||
Import-BuildStep -SourcePath ( | ||
Join-Path $PSScriptRoot 'GitHub' | ||
) -BuildSystem GitHubWorkflow | ||
|
||
|
||
New-GitHubWorkflow -Name "Test, Tag, Release, and Publish" -Job PowerShellStaticAnalysis, | ||
TestPowerShellOnLinux, | ||
TagReleaseAndPublish, | ||
BuildIrregular -On Push, Demand -Environment ([Ordered]@{ | ||
REGISTRY = 'ghcr.io' | ||
IMAGE_NAME = '${{ github.repository }}' | ||
}) -OutputPath .\.github\workflows\IrregularTests.yml | ||
|
||
New-GitHubWorkflow -Name "Run GitHub Action" -On Push, | ||
Demand -Job UseIrregularAction -OutputPath .\.github\workflows\RunIrregularAction.yml | ||
|
||
New-GitHubWorkflow -On Demand -Job RunGitPub -Name "GitPub" -OutputPath .\.github\workflows\RunGitPub.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
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
Oops, something went wrong.