diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 05cee97..2bb5039 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -1,20 +1,24 @@ -name: Build and upload Docker image +name: Deploy Docker image on: - push: + workflow_run: + workflows: + - ci branches: - main + types: + - completed jobs: buildx: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 + - id: buildx + uses: docker/setup-buildx-action@v3 - name: Build images env: