Update docker-build.yml

This commit is contained in:
Dedy Martadinata S 2022-06-28 23:12:05 +07:00 committed by GitHub
parent 40fa9596d5
commit f383948c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,13 +263,9 @@ jobs:
id: meta
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
tags: nitnelave/lldap:latest, nitnelave/lldap:stable, nitnelave/lldap:v${{ steps.slug.outputs.version-semantic }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}, nitnelave/lldap:v${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}.${{ steps.slug.outputs.version-patch }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Login to Docker Hub
if: github.event_name != 'pull_request'