From 808c22ec309ce7965e4385d6d550505c8ac8416e Mon Sep 17 00:00:00 2001 From: Gaius Date: Wed, 13 Oct 2021 18:46:36 +0800 Subject: [PATCH] chore: repository name Signed-off-by: Gaius --- .github/workflows/docker.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7fb2e3583c8..e62d526db9f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -45,7 +45,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: PrepareReg Names - run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') + run: | + echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV + echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV - name: Push to Docker Hub uses: docker/build-push-action@v2 @@ -102,7 +104,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: PrepareReg Names - run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') + run: | + echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV + echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV - name: Push to Docker Hub uses: docker/build-push-action@v2 @@ -159,7 +163,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: PrepareReg Names - run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') + run: | + echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV + echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV - name: Push to Docker Hub uses: docker/build-push-action@v2 @@ -216,7 +222,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: PrepareReg Names - run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') + run: | + echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV + echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV - name: Push to Docker Hub uses: docker/build-push-action@v2