fix lower case repo name
This commit is contained in:
parent
26c59d3646
commit
8240c62c9c
1 changed files with 9 additions and 8 deletions
17
.github/workflows/os.yml
vendored
17
.github/workflows/os.yml
vendored
|
|
@ -61,22 +61,23 @@ jobs:
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5 # Opdateret til v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
# Her tvinger vi tags til at være lowercase og definerer dine versioner
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest
|
||||||
|
type=raw,value=10
|
||||||
|
type=raw,value=10.${{ steps.date.outputs.date }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v5 # Opdateret til v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
# Nu bruger vi udelukkende tags fra meta-trinnet, som er lowercase-sikre
|
||||||
${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:10
|
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:10.${{ steps.date.outputs.date }}
|
|
||||||
# Da caching alligevel ikke virkede, har jeg fjernet cache-to/from
|
|
||||||
# Det gør buildet mere rent, når vi bruger squash
|
|
||||||
squash: true
|
squash: true
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
- name: Sign the published Docker image
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue