From db5572284ac18e5f687e06418b6611d28555b79e Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 18 Jun 2024 22:03:15 +0530 Subject: [PATCH] hotfix starship-docker workflow to build starship specific containers --- .github/workflows/starship-docker.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/starship-docker.yaml b/.github/workflows/starship-docker.yaml index cc30ce41..ee01bd5f 100644 --- a/.github/workflows/starship-docker.yaml +++ b/.github/workflows/starship-docker.yaml @@ -18,6 +18,7 @@ on: - "starship/exposer/**" - "starship/faucet/**" - ".github/workflows/starship-docker.yaml" + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }}-starship-docker @@ -51,18 +52,18 @@ jobs: with: filters: | src: - - '${{ matrix.type }}/**' + - 'starship/${{ matrix.type }}/**' - name: Set up QEMU - if: steps.changes.outputs.src == 'true' + if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - if: steps.changes.outputs.src == 'true' + if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub - if: steps.changes.outputs.src == 'true' + if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' uses: docker/login-action@v1 with: registry: ghcr.io @@ -70,7 +71,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Determine tag - if: steps.changes.outputs.src == 'true' + if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' id: docker-tag run: | tag=$(date -u "+%Y%m%d")-$(echo ${GITHUB_SHA} | cut -c1-7) @@ -78,7 +79,7 @@ jobs: echo ::set-output name=version::$tag - name: Build and push - if: steps.changes.outputs.src == 'true' + if: steps.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' uses: docker/build-push-action@v4 with: push: ${{ github.event_name == 'push' }}