From 32b01edfac1f1a6d531182ed1d8a1cbb60d145f3 Mon Sep 17 00:00:00 2001 From: ArthurMitchell42 <82239494+ArthurMitchell42@users.noreply.github.com> Date: Sun, 10 Dec 2023 11:51:53 +0000 Subject: [PATCH] Update docker-buildpush.yml Signed-off-by: ArthurMitchell42 <82239494+ArthurMitchell42@users.noreply.github.com> --- .github/workflows/docker-buildpush.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-buildpush.yml b/.github/workflows/docker-buildpush.yml index 5f68374..9c541b1 100644 --- a/.github/workflows/docker-buildpush.yml +++ b/.github/workflows/docker-buildpush.yml @@ -1,10 +1,10 @@ -name: Docker Image CI +name: Docker Image build and push on: push: branches: [ "main" ] -# pull_request: -# branches: [ "main" ] + label: + branches: [ "main" ] env: # Use docker.io for Docker Hub if empty @@ -31,5 +31,5 @@ jobs: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build the Docker image - run: docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 --file Dockerfile --tag kronos443/nutcase:$(date +%s) --push . + run: docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 --file Dockerfile --tag kronos443/nutcase:$(date +%Y%M%D-%H%m%S) --push .