Skip to content

Commit

Permalink
more attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
PipeItToDevNull committed Dec 8, 2024
1 parent cb3242c commit 885b381
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/bsod-api-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build and push
run: |
$SHORT_SHA = "${{ github.sha }}"[0..6] -join ''
$SHA = "${{ github.sha }}"[0..6] -join ''
if ("${{ github.ref }}" -eq 'refs/heads/main') {
$TAG = 'latest'
Expand All @@ -45,12 +45,14 @@ jobs:
}
Write-Host "Using tag: $TAG"
Write-Host "Using SHA: $SHA"
docker build -t `
${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:$TAG `
-t ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:${{ env.SHORT_SHA }} `
-t ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:$SHA `
api/
docker push ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:$TAG
docker push ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:${{ env.SHORT_SHA }}
docker push ${{ env.REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:$SHA
- name: Log out from the Container registry
run: docker logout ${{ env.REGISTRY }}
Expand Down

0 comments on commit 885b381

Please sign in to comment.