-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): pull release/v1.42.0 into main (#2627)
- Loading branch information
Showing
128 changed files
with
79,109 additions
and
897 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 |
---|---|---|
|
@@ -29,9 +29,9 @@ env: | |
DOCKERHUB_USERNAME: rudderlabs | ||
|
||
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] | ||
|
@@ -55,12 +55,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 | ||
|
@@ -70,12 +70,80 @@ 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 |
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.