From 979c5a3554cfe9a181782930a91b023585251466 Mon Sep 17 00:00:00 2001 From: Richard William <70947923+richard483@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:55:56 +0700 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 00f3354..a53d167 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx @@ -25,4 +28,4 @@ jobs: uses: docker/build-push-action@v5 with: push: true - tags: ${{ secrets.DOCKER_REPOSITORY_NAME_TAG }} + tags: ${{ format({0}/8tech:v{1}), secrets.DOCKERHUB_USERNAME, steps.package-version.outputs.current-version) }}