From 4d53b560d9eb3ab268efca27c0c931e28a469848 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sun, 4 Aug 2024 14:25:39 +0700 Subject: [PATCH] #39 [docker public hub] fix: update workflow config --- .github/workflows/php-docker-public.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-docker-public.yml b/.github/workflows/php-docker-public.yml index 4fad5e1..680040a 100644 --- a/.github/workflows/php-docker-public.yml +++ b/.github/workflows/php-docker-public.yml @@ -9,6 +9,7 @@ env: IMAGE_NAME: ${{ secrets.IMAGE_NAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} jobs: shellcheck: @@ -45,7 +46,8 @@ jobs: with: registry: docker.io username: ${{ env.DOCKERHUB_USERNAME }} - password: ${{ env.DOCKERHUB_TOKEN }} + password: ${{ env.DOCKERHUB_PASSWORD }} + token: ${{ env.DOCKERHUB_TOKEN }} - name: Get latest version tag id: get_version @@ -75,7 +77,7 @@ jobs: patch=0 minor=$((minor+1)) fi - if [ "$minor" -ge 10 ]; then + if [ "$minor" -ge 10]; then minor=0 major=$((major+1)) fi