From c849c0313cceb4f27d1ef2f8dab690957f35aeb1 Mon Sep 17 00:00:00 2001 From: mariano-arago Date: Mon, 20 Oct 2025 17:45:03 -0300 Subject: [PATCH 1/4] Move to deploy_qos_v3 pipeline --- .github/workflows/docker.yml | 52 ------------------------------------ splitio/version.go | 2 +- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 7155ff0..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: docker - -on: - push: - branches: - - main - -permissions: - contents: read - id-token: write - -jobs: - build-docker-image: - name: Build and push Docker image - runs-on: ubuntu-latest - strategy: - matrix: - fips_mode: [enabled, disabled] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_RO_TOKEN }} - - - name: Configure AWS credentials - if: ${{ github.event_name == 'push' }} - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ vars.ECR_TESTING_ROLE_ARN }} - aws-region: us-east-1 - - - name: Login to Amazon ECR - if: ${{ github.event_name == 'push' }} - uses: aws-actions/amazon-ecr-login@v2 - - - name: Set VERSION env - run: echo "VERSION=$(cat splitio/version.go | grep 'Version =' | awk '{print $4}' | tr -d '"')" >> $GITHUB_ENV - - - name: Docker Build and Push - uses: docker/build-push-action@v6 - with: - context: . - file: "infra/sidecar.Dockerfile" - push: true - tags: | - ${{ vars.ECR_TESTING_URL }}/splitd/sidecar${{ matrix.fips_mode == 'enabled' && '-fips' || ''}}:${{ env.VERSION }} - build-args: | - FIPS_MODE=${{ matrix.fips_mode }} diff --git a/splitio/version.go b/splitio/version.go index c6b99f6..fff15bc 100644 --- a/splitio/version.go +++ b/splitio/version.go @@ -1,3 +1,3 @@ package splitio -const Version = "1.6.2" +const Version = "1.6.3" From 42325114767051404aad6595d3884597e2df920e Mon Sep 17 00:00:00 2001 From: Mariano Arago Date: Mon, 20 Oct 2025 17:47:47 -0300 Subject: [PATCH 2/4] Create inputset splitd --- .../deploy_qos_v3/input_sets/splitd.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd.yaml diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd.yaml new file mode 100644 index 0000000..c5083f7 --- /dev/null +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd.yaml @@ -0,0 +1,76 @@ +inputSet: + name: splitd + identifier: splitd + orgIdentifier: PROD + projectIdentifier: Harness_Split + pipeline: + identifier: deploy_qos_v3 + stages: + - parallel: + - stage: + identifier: CI + type: CI + spec: + execution: + steps: + - step: + identifier: custom_tag + type: Run + spec: + command: VERSION="$(cat splitio/version.go | grep 'Version =' | awk '{print $4}' | tr -d '"')" + when: + condition: "true" + - step: + identifier: BuildAndPush + type: BuildAndPushDockerRegistry + spec: + repo: splitd/sidecar<+<+matrix.fips_mode>=="enabled"?"-fips":""> + tags: + - <+pipeline.stages.CI<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION> + - latest + dockerfile: infra/sidecar.Dockerfile + context: "" + buildArgs: + FIPS_MODE: <+matrix.fips_mode> + strategy: + matrix: + fips_mode: + - enabled + - disabled + - stage: + identifier: ECR + type: CI + spec: + execution: + steps: + - step: + identifier: custom_tag + type: Run + spec: + command: VERSION="$(cat splitio/version.go | grep 'Version =' | awk '{print $4}' | tr -d '"')" + when: + condition: "true" + - step: + identifier: BuildAndPushECR + type: BuildAndPushECR + spec: + imageName: splitd/sidecar<+<+matrix.fips_mode>=="enabled"?"-fips":""> + tags: + - <+pipeline.stages.ECR<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION> + - latest + dockerfile: infra/sidecar.Dockerfile + context: "" + buildArgs: + FIPS_MODE: <+matrix.fips_mode> + strategy: + matrix: + fips_mode: + - enabled + - disabled + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 3f07a818127f7c050a563f3fd4c745eef983d415 Mon Sep 17 00:00:00 2001 From: Mariano Arago Date: Mon, 20 Oct 2025 20:50:29 +0000 Subject: [PATCH 3/4] Create inputset splitd_unstable --- .../input_sets/splitd_unstable.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd_unstable.yaml diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd_unstable.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd_unstable.yaml new file mode 100644 index 0000000..15e9d8a --- /dev/null +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/deploy_qos_v3/input_sets/splitd_unstable.yaml @@ -0,0 +1,76 @@ +inputSet: + name: splitd_unstable + identifier: splitd_unstable + orgIdentifier: PROD + projectIdentifier: Harness_Split + pipeline: + identifier: deploy_qos_v3 + stages: + - parallel: + - stage: + identifier: CI + type: CI + spec: + execution: + steps: + - step: + identifier: custom_tag + type: Run + spec: + command: VERSION="$(git rev-parse --short HEAD)" + when: + condition: "true" + - step: + identifier: BuildAndPush + type: BuildAndPushDockerRegistry + spec: + repo: splitd/sidecar<+<+matrix.fips_mode>=="enabled"?"-fips":""> + tags: + - <+pipeline.stages.CI<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION> + - latest + dockerfile: infra/sidecar.Dockerfile + context: "" + buildArgs: + FIPS_MODE: <+matrix.fips_mode> + strategy: + matrix: + fips_mode: + - enabled + - disabled + - stage: + identifier: ECR + type: CI + spec: + execution: + steps: + - step: + identifier: custom_tag + type: Run + spec: + command: VERSION="$(git rev-parse --short HEAD)" + when: + condition: "true" + - step: + identifier: BuildAndPushECR + type: BuildAndPushECR + spec: + imageName: splitd/sidecar<+<+matrix.fips_mode>=="enabled"?"-fips":""> + tags: + - <+pipeline.stages.ECR<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION> + - latest + dockerfile: infra/sidecar.Dockerfile + context: "" + buildArgs: + FIPS_MODE: <+matrix.fips_mode> + strategy: + matrix: + fips_mode: + - enabled + - disabled + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 69b5570c4987bf6bff1b34e55508f26b33dee83f Mon Sep 17 00:00:00 2001 From: mariano-arago Date: Tue, 21 Oct 2025 12:32:31 -0300 Subject: [PATCH 4/4] Remove unstable docker workflow --- .github/workflows/unstable.yml | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/workflows/unstable.yml diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml deleted file mode 100644 index a1e813c..0000000 --- a/.github/workflows/unstable.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: unstable -on: - push: - branches-ignore: - - main - -permissions: - contents: read - id-token: write - -jobs: - push-docker-image: - name: Build and Push Docker Image - runs-on: ubuntu-latest - strategy: - matrix: - fips_mode: [enabled, disabled] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_RO_TOKEN }} - - - name: Configure AWS credentials - if: ${{ github.event_name == 'push' }} - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ vars.ECR_TESTING_ROLE_ARN }} - aws-region: us-east-1 - - - name: Login to ECR - if: ${{ github.event_name == 'push' }} - uses: aws-actions/amazon-ecr-login@v2 - - - name: Get short hash - run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - - name: Docker Build and Push - uses: docker/build-push-action@v6 - with: - context: . - file: "infra/sidecar.Dockerfile" - push: true - tags: | - ${{ vars.ECR_TESTING_URL }}/splitd/sidecar${{ matrix.fips_mode == 'enabled' && '-fips' || '' }}:${{ env.SHORT_SHA }} - build-args: | - FIPS_MODE=${{ matrix.fips_mode }}