Update docker-build.yml

pull/2386/head^2
Chaitanya Rahalkar 1 month ago committed by GitHub
parent 58085bec3f
commit 0187470148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -32,6 +32,15 @@ jobs:
type=raw,value=latest
type=raw,value={{date 'YYYYMMDD'}}
- name: Extract metadata for Alpine
id: meta-alpine
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=alpine
type=raw,prefix=alpine-,value={{date 'YYYYMMDD'}}
- name: Build and push regular image
uses: docker/build-push-action@v5
with:
@ -47,7 +56,5 @@ jobs:
context: .
file: ./Dockerfile-alpine
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:alpine
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:alpine-{{date 'YYYYMMDD'}}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta-alpine.outputs.tags }}
labels: ${{ steps.meta-alpine.outputs.labels }}

Loading…
Cancel
Save