Skip to content

Commit

Permalink
pushtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Jun 18, 2024
1 parent 421b45f commit 8054738
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/BuildMissingImages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ jobs:
$host.SetShouldExit(1)
}
MakeStale:
MarkOldImagesStale:
runs-on: [ Windows-Latest ]
needs: [ AnalyzeImages, BuildImages ]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: MakeStale
- name: MarkStale
env:
digestsJson: ${{ needs.AnalyzeImages.outputs.digestsJson }}
shell: pwsh
Expand All @@ -230,7 +230,7 @@ jobs:
Invoke-RestMethod -Method GET -UseBasicParsing -Uri "https://github.com/oras-project/oras/releases/download/v$($version)/oras_$($version)_windows_amd64.zip" -OutFile $filename
Expand-Archive -Path $filename -DestinationPath temp
$pushRegistry = "mcrbusinesscentral.azurecr.io"
$mcrbusinesscentralkey | ./temp/oras.exe login $pushRegistry --username ${{ secrets.PushUsername }} --password-stdin
"${{ secrets.PushToken }}" | ./temp/oras.exe login $pushRegistry --username ${{ secrets.PushUsername }} --password-stdin
$digests | ForEach-Object {
$image = "$pushRegistry/public/businesscentral@$_"
Write-Host "Stale $image"
Expand Down

0 comments on commit 8054738

Please sign in to comment.