Skip to content

Commit 77276a8

Browse files
Merge pull request #19 from PoshWeb/fun-server
fix(workflow): Fixing container deploy ( Fixes #4 )
2 parents 6f335b4 + e7b95b7 commit 77276a8

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/BuildFun.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ jobs:
572572
if: ${{ success() }}
573573
steps:
574574
- name: Check out repository
575-
uses: actions/checkout@v4
576-
- name: Log in to the Container registry (for main)
575+
uses: actions/checkout@main
576+
- name: Log in to the Container registry
577577
if: ${{github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest'}}
578578
uses: docker/login-action@master
579579
with:
@@ -595,4 +595,6 @@ jobs:
595595
push: true
596596
tags: ${{ steps.metaMain.outputs.tags }}
597597
labels: ${{ steps.metaMain.outputs.labels }}
598-
598+
env:
599+
REGISTRY: ghcr.io
600+
IMAGE_NAME: ${{ github.repository }}

Build/Fun.GitHubWorkflow.PSDevOps.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Push-Location ($PSScriptRoot | Split-Path)
88
New-GitHubWorkflow -Name "Build Fun" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis,
99
TestPowerShellOnLinux,
1010
TagReleaseAndPublish,
11-
buildfun -OutputPath .\.github\workflows\BuildFun.yml
11+
buildfun -OutputPath .\.github\workflows\BuildFun.yml -Env ([Ordered]@{
12+
"REGISTRY" = "ghcr.io"
13+
"IMAGE_NAME" = '${{ github.repository }}'
14+
})
1215

1316
Pop-Location

0 commit comments

Comments
 (0)