From 9b35c71d00b1b425daeb3dea46336ee2f661ea54 Mon Sep 17 00:00:00 2001 From: Wilson Wu Date: Mon, 18 Dec 2023 15:23:03 +0800 Subject: [PATCH] debug Signed-off-by: Wilson Wu --- .github/workflows/main.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8850275..f25d252 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,18 +12,16 @@ on: workflow_call: secrets: DAOCLOUD_REGISTRY_USERNAME: - required: true + required: false DAOCLOUD_REGISTRY_PWD: - required: true - + required: false + env: GOLANG_VERSION: '1.21' + DAOCLOUD_REGISTRY_USERNAME: ${{ secrets.DAOCLOUD_REGISTRY_USERNAME }} + DAOCLOUD_REGISTRY_PWS: ${{ secrets.DAOCLOUD_REGISTRY_PWD }} jobs: - call-workflow-passing-data: - uses: argoproj-labs/rollouts-plugin-trafficrouter-contour/.github/workflows/main.yml@main - secrets: inherit # <= this one - init-variable: runs-on: ubuntu-latest outputs: @@ -88,7 +86,7 @@ jobs: go build -v image: - needs: [init-variable, call-workflow-passing-data] + needs: [init-variable] name: Build Docker image runs-on: ${{ matrix.os }} strategy: @@ -103,8 +101,8 @@ jobs: uses: docker/login-action@v3 with: registry: release.daocloud.io - username: ${{ secrets.DAOCLOUD_REGISTRY_USERNAME }} - password: ${{ secrets.DAOCLOUD_REGISTRY_PWD }} + username: ${{ env.DAOCLOUD_REGISTRY_USERNAME }} + password: ${{ env.DAOCLOUD_REGISTRY_PWD }} - name: Use setup-buildx-action uses: docker/setup-buildx-action@v2 - name: Build Docker image