Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Wilson Wu <iwilsonwu@gmail.com>
  • Loading branch information
wilsonwu committed Dec 18, 2023
1 parent 36277fe commit 9b35c71
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9b35c71

Please sign in to comment.