From 5e3e0a194df50ecc0159fe79c4bcb8248c155294 Mon Sep 17 00:00:00 2001 From: Harshit Luthra Date: Tue, 15 Oct 2024 23:47:03 +0530 Subject: [PATCH] ci(workflow): streamline release process by reusing shared build workflow refactor(Dockerfile): remove platform specification for broader compatibility --- .DS_Store | Bin 0 -> 6148 bytes .github/workflows/release-to-jfrog.yaml | 35 ++++-------------------- Dockerfile | 2 +- 3 files changed, 6 insertions(+), 31 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a7c3e3331aa53634f513faa416fd37004e9f92c2 GIT binary patch literal 6148 zcmeHKJ5B>J5FJBMR)9nb3d)t}5fP$AOIQj@l#T{Sf)b>Jjq;J8TdqJs0TpN90EmW` zt8fI~*v`hz=0k-Lnvv}1^~~6BUbO3&h*V|RC=->4C_rN@tfHG@?B|xVB|EbTRJ=yJ zS+3TTPB#}R6QY19@D~-}ceg-0)TC<~c<*oVAa;G7B#vwCq=vcR{^j{CIr%vB{f)W) zZp-;L1SwLfINFz5G^CohJCz>t5iW=A&!-WGiFG>3n91xYj}PrKpAEXCKHbp`)#;qN z)T0EWE6nvV>UsRs-umJUmv8qd(`>;$F8`lrdG)9-t|tKZTh!D+Ep4vDtAK*nX)!M6 zv(t=oZY`JPyf}}S(RqaiTGhcMqx}es9Iwme{W0U>MT~#z=@I_^ax_8Vk>Si{3)T!u zFA9hPqClnqe;-0L#>ir7P=7km=_>%RfN5{@q+>p` zagoK;ph+iXFCWV8tn3X%>D{q@sKZG`2BjATL;+ucW%F3#^Z$7E{ohZLCs9BY_*V+3 zLR^h2D9N6!x#IY&4bd*p*f=gVs8i6{<5&;)DBeQT24BbnU}P~hh#8pt5zsP7Ckp(k F0^jH|xjFy< literal 0 HcmV?d00001 diff --git a/.github/workflows/release-to-jfrog.yaml b/.github/workflows/release-to-jfrog.yaml index 3684a81..808133a 100644 --- a/.github/workflows/release-to-jfrog.yaml +++ b/.github/workflows/release-to-jfrog.yaml @@ -6,41 +6,16 @@ on: push: branches: - 'main' + - arm-build permissions: id-token: write contents: read -env: - IMAGE_TAG: ${{ github.sha }} - ARTIFACTORY_REGISTRY: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }} - ARTIFACTORY_USERNAME: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }} - ARTIFACTORY_PASSWORD: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }} - ARTIFACTORY_REPOSITORY_URL: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_REPOSITORY }}/async_processor - jobs: build: name: Build Image - runs-on: ubuntu-latest - steps: - - name: Checkoutout code - uses: actions/checkout@v4 - - - name: Log in to JFrog Artifactory - uses: docker/login-action@v3 - with: - username: ${{ env.ARTIFACTORY_USERNAME }} - password: ${{ env.ARTIFACTORY_PASSWORD }} - registry: ${{ env.ARTIFACTORY_REGISTRY }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ env.ARTIFACTORY_REPOSITORY_URL }}:${{ env.IMAGE_TAG }} - cache-from: type=registry,ref=${{ env.ARTIFACTORY_REPOSITORY_URL }}:buildcache - cache-to: mode=max,image-manifest=true,type=registry,ref=${{ env.ARTIFACTORY_REPOSITORY_URL }}:buildcache + uses: truefoundry/workflows/.github/workflows/build.yml@main + secrets: inherit + with: + internal: false diff --git a/Dockerfile b/Dockerfile index 6e016cf..0566c7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 python:3.9-slim +FROM python:3.9-slim ENV DEBIAN_FRONTEND=noninteractive RUN python -m pip install -U pip setuptools wheel poetry WORKDIR /code