diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 86c129a23..948b6b513 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,15 @@ name: CI on: + workflow_dispatch: push: branches: - - master + - 'master' + tags: + - 'v*' pull_request: + branches: + - 'master' jobs: check: @@ -76,3 +81,25 @@ jobs: - name: Helm test run: make helm-test + + dockerhub-image: + needs: [check, unit-test, integration-test] + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and Release Image + run: make image-release