forked from rudderlabs/rudder-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from scheduleonce/technocrats/ONCEHUB-75672
fix: rudderlabs pull to master
- Loading branch information
Showing
1,260 changed files
with
422,477 additions
and
260,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
## What are the changes introduced in this PR? | ||
|
||
Write a brief explainer on your code changes. | ||
|
||
## Please explain the objectives of your changes below | ||
|
||
Put down any required details on the broader aspect of your changes. If there are any dependent changes, **mandatorily** mention them here | ||
|
||
### Type of change | ||
|
||
If the pull request is a **bug-fix**, **enhancement** or a **refactor**, please fill in the details on the changes made. | ||
|
||
- Existing capabilities/behavior | ||
|
||
- New capabilities/behavior | ||
|
||
If the pull request is a **new feature**, | ||
|
||
### Any technical or performance related pointers to consider with the change? | ||
|
||
N/A | ||
|
||
### Any new dependencies introduced with this change? | ||
|
||
N/A | ||
|
||
### Any new generic utility introduced or modified. Please explain the changes. | ||
|
||
N/A | ||
|
||
### If the PR has changes in more than 10 files, please mention why the changes were not split into multiple PRs. | ||
|
||
N/A | ||
|
||
### If multiple linear tasks are associated with the PR changes, please elaborate on the reason: | ||
|
||
N/A | ||
|
||
<hr> | ||
|
||
### Developer checklist | ||
|
||
- [ ] **No breaking changes are being introduced.** | ||
|
||
- [ ] Are all related docs linked with the PR? | ||
|
||
- [ ] Are all changes manually tested? | ||
|
||
- [ ] Does this change require any documentation changes? | ||
|
||
- [ ] Are relevant unit and component test-cases added? | ||
|
||
### Reviewer checklist | ||
|
||
- [ ] Is the type of change in the PR title appropriate as per the changes? | ||
|
||
- [ ] Verified that there are no credentials or confidential data exposed with the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ on: | |
push_target: | ||
required: true | ||
type: string | ||
build_type: | ||
type: string | ||
secrets: | ||
DOCKERHUB_PROD_TOKEN: | ||
required: true | ||
|
@@ -34,9 +36,9 @@ env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
|
||
jobs: | ||
build-transformer-image: | ||
name: Build Transformer Docker Image | ||
runs-on: ubuntu-latest | ||
build-transformer-image-arm64: | ||
name: Build Transformer Docker Image ARM64 | ||
runs-on: [self-hosted, Linux, ARM64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -61,12 +63,12 @@ jobs: | |
target: ${{ inputs.load_target }} | ||
load: true | ||
tags: ${{ inputs.build_tag }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
- name: Run Tests | ||
run: | | ||
docker run ${{ inputs.build_tag }} npm run test:js:ci | ||
docker run ${{ inputs.build_tag }} npm run test:js:ci | ||
docker run ${{ inputs.build_tag }} npm run test:ts:ci | ||
- name: Build and Push Multi-platform Images | ||
|
@@ -76,12 +78,92 @@ jobs: | |
file: ${{ inputs.dockerfile }} | ||
target: ${{ inputs.push_target }} | ||
push: true | ||
tags: ${{ inputs.push_tags }} | ||
tags: ${{ inputs.push_tags }}-arm64 | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
build-args: | | ||
version=${{ inputs.img_tag }} | ||
version=${{ inputs.img_tag }}-arm64 | ||
GIT_COMMIT_SHA=${{ github.sha }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
build-transformer-image-amd64: | ||
name: Build Transformer Docker Image AMD64 | ||
runs-on: [self-hosted, Linux, X64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ env.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} | ||
|
||
- name: Build Docker Image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
target: ${{ inputs.load_target }} | ||
load: true | ||
tags: ${{ inputs.build_tag }} | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
- name: Run Tests | ||
run: | | ||
docker run ${{ inputs.build_tag }} npm run test:js:ci | ||
docker run ${{ inputs.build_tag }} npm run test:ts:ci | ||
- name: Build and Push Multi-platform Images | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile }} | ||
target: ${{ inputs.push_target }} | ||
push: true | ||
tags: ${{ inputs.push_tags }}-amd64 | ||
platforms: | | ||
linux/amd64 | ||
build-args: | | ||
version=${{ inputs.img_tag }}-amd64 | ||
GIT_COMMIT_SHA=${{ github.sha }} | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
create-manifest: | ||
name: Create multi-arch manifest | ||
runs-on: ubuntu-latest | ||
needs: [build-transformer-image-amd64, build-transformer-image-arm64] | ||
|
||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ env.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PROD_TOKEN }} | ||
|
||
- name: Create multi-arch manifest | ||
run: | | ||
docker buildx imagetools create -t ${{ inputs.push_tags }} ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 | ||
- name: Create latest multi-arch manifest | ||
# To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-dt-deploy.yaml` | ||
if: ${{ inputs.build_type == 'dt' }} | ||
run: | | ||
docker buildx imagetools create -t rudderstack/rudder-transformer:latest ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 | ||
- name: Create latest ut multi-arch manifest | ||
# To be triggered only for release/hotfix PR merges coming from `prepare-for-prod-ut-deploy.yaml` | ||
if: ${{ inputs.build_type == 'ut' }} | ||
run: | | ||
docker buildx imagetools create -t rudderstack/rudder-transformer:ut-latest ${{ inputs.push_tags }}-amd64 ${{ inputs.push_tags }}-arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# Only allow these users to create new hotfix branch from 'main' | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507') | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab') | ||
steps: | ||
- name: Create Branch | ||
uses: peterjgrainger/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# Only allow release stakeholders to initiate releases | ||
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507') | ||
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'koladilip' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'yashasvibajpai' || github.actor == 'sanpj2292' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'ujjwal-ab') | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.