This commit is contained in:
nicko170 2022-02-08 23:21:05 +11:00 committed by GitHub
parent f05531979f
commit ac15d52c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,12 +35,17 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-$(git rev-parse --short HEAD)-$(date +%s)
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Generate branch tag
id: set_tag
run: |
echo "::set-output name=tag::${{ github.ref_name }}-$(git rev-parse --short HEAD)-$(date +%s)"
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}, ${{ steps.set_tag.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}