Skip to content

Commit

Permalink
Merge pull request #112 from StartAutomating/ShowDemo-Docker
Browse files Browse the repository at this point in the history
fix: ShowDemo Docker Publishing ( Fixes #105 )
  • Loading branch information
StartAutomating committed Apr 14, 2024
2 parents 3dacfc9 + 9a01525 commit 1b6bb6a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/BuildShowDemo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,15 @@ jobs:
- name: PSA
uses: StartAutomating/PSA@main
id: PSA
- name: Log in to the Container registry
- name: Log in to the Container registry (on main)
if: ${{github.event_name != 'pull_request' && (github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest')}}
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Log in to the Container registry (on branch)
if: ${{github.ref_name != 'main' && github.ref_name != 'master' && github.ref_name == 'latest'}}
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
Expand Down
15 changes: 13 additions & 2 deletions Build/GitHub/Jobs/BuildShowDemo.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,18 @@
id = 'PSA'
}
@{
'name'='Log in to the Container registry'
'name'='Log in to the Container registry (on main)'
if = '${{github.event_name != ''pull_request'' && (github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest'')}}'
'uses'='docker/login-action@master'
'with'=@{
'registry'='${{ env.REGISTRY }}'
'username'='${{ github.actor }}'
'password'='${{ secrets.GHCR_TOKEN }}'
}
},
@{
'name'='Log in to the Container registry (on branch)'
if = '${{github.ref_name != ''main'' && github.ref_name != ''master'' && github.ref_name == ''latest''}}'
'uses'='docker/login-action@master'
'with'=@{
'registry'='${{ env.REGISTRY }}'
Expand All @@ -66,7 +77,7 @@
'with'=@{
'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}'
}
},
},
@{
name = 'Build and push Docker image (from main)'
if = '${{github.event_name != ''pull_request'' && (github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest'')}}'
Expand Down
2 changes: 1 addition & 1 deletion Demos/Trinity-Of-Discoverability.demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Get-Command -Module ShowDemo
 
 CommandType  Name  Version  Source
 -----------  ----  -------  ------
[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m Function Export-Demo 0.1.7 ShowDemo[0m
[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m Function Write-Host 0.1.7 ShowDemo[0m
 
 
In PowerShell, it's common for commands to share similar names.
Expand Down
2 changes: 1 addition & 1 deletion docs/Trinity-Of-Discoverability.demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Get-Command -Module ShowDemo
 
 CommandType  Name  Version  Source
 -----------  ----  -------  ------
[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m Function Export-Demo 0.1.7 ShowDemo[0m
[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m[32;1m[0m Function Write-Host 0.1.7 ShowDemo[0m
 
 
In PowerShell, it's common for commands to share similar names.
Expand Down

0 comments on commit 1b6bb6a

Please sign in to comment.