diff --git a/.github/workflows/docker-ecs-worker-image.yml b/.github/workflows/docker-ecs-worker-image.yml index b601125ae4..3c13e2eaa9 100644 --- a/.github/workflows/docker-ecs-worker-image.yml +++ b/.github/workflows/docker-ecs-worker-image.yml @@ -96,12 +96,14 @@ jobs: registry-type: public - name: Build the Docker image (public) + if: matrix.registry == 'public' env: DOCKER_TAG: ${{ env.WORKER_VERSION }}-${{ matrix.platform_name }} run: | docker build . --platform ${{ matrix.platform }} --build-arg="WORKER_VERSION=${{ env.WORKER_VERSION }}" --tag public.ecr.aws/d8a4z9o5/artillery-worker:${{ env.DOCKER_TAG }} -f ./packages/artillery/lib/platform/aws-ecs/worker/Dockerfile - name: Push Docker image (Public - Fargate) + if: matrix.registry == 'public' env: DOCKER_TAG: ${{ env.WORKER_VERSION }}-${{ matrix.platform_name }} run: |