From c9c2cae4cf5a81876083902d6a1144ace7d4a9f8 Mon Sep 17 00:00:00 2001 From: Dario Pizzamiglio <1150680+mediuminvader@users.noreply.github.com> Date: Fri, 12 May 2023 14:29:46 +0800 Subject: [PATCH] Prepare v0.1.21 (#1558) * feat(ci): add workflow step to push image to Dockerhub * chore(ci): fix accidential edit of Compile deb file step Signed-off-by: Abhishek Mishra * chore(ci): add release condition for dockerhub puch step * Version bump --------- Signed-off-by: Abhishek Mishra Co-authored-by: Abhishek Mishra --- .github/workflows/release.yaml | 26 +++++++++++++++++++++++--- Cargo.lock | 28 ++++++++++++++-------------- dozer-api/Cargo.toml | 2 +- dozer-cache/Cargo.toml | 2 +- dozer-core/Cargo.toml | 2 +- dozer-ingestion/Cargo.toml | 2 +- dozer-log-js/Cargo.toml | 2 +- dozer-log-js/package-lock.json | 4 ++-- dozer-log-js/package.json | 2 +- dozer-log-python/Cargo.toml | 2 +- dozer-log/Cargo.toml | 2 +- dozer-orchestrator/Cargo.toml | 2 +- dozer-sql/Cargo.toml | 2 +- dozer-storage/Cargo.toml | 2 +- dozer-tests/Cargo.toml | 2 +- dozer-tracing/Cargo.toml | 2 +- dozer-types/Cargo.toml | 2 +- dozer-utils/Cargo.toml | 2 +- 18 files changed, 54 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 15069f392d..59d787133f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,8 @@ env: BUCKET_NAME: "dozer-releases" ECR_REGISTRY: public.ecr.aws/k7k6x1d4 ECR_REPOSITORY: dozer + DOCKERHUB_REGISTRY: getdozer + DOCKERHUB_REPOSITORY: dozer permissions: id-token: write # This is required for requesting the JWT @@ -147,9 +149,9 @@ jobs: mv release/ ${{matrix.asset_name}}/ tar -czvf ${{matrix.asset_name}}.tar.gz ${{matrix.asset_name}}/ - + cp deb/${{matrix.asset_name}}.deb ${{matrix.asset_name}}/ - + ls -l ${{matrix.asset_name}} - name: Upload the release @@ -364,7 +366,7 @@ jobs: ${{matrix.asset_name}}/ cp deb/${{matrix.asset_name}}.deb ${{matrix.asset_name}}/ 2>/dev/null || : - + ls -l ${{matrix.asset_name}} - name: Upload the release @@ -427,6 +429,24 @@ jobs: docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest + - name: Log in to Docker Hub + if: (github.event_name == 'release') && (needs.prepare.outputs.prerelease == 'false') && (matrix.os == 'ubuntu-20-16-cores') + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image to Docker Hub + if: (github.event_name == 'release') && (needs.prepare.outputs.prerelease == 'false') && (matrix.os == 'ubuntu-20-16-cores') + env: + IMAGE_TAG: ${{ needs.prepare.outputs.version }} + uses: docker/build-push-action@v2 + with: + context: . + file: ./ci/Dockerfile + push: true + tags: ${{ env.DOCKERHUB_REGISTRY }}/${{ env.DOCKERHUB_REPOSITORY }}:latest,${{ env.DOCKERHUB_REGISTRY }}/${{ env.DOCKERHUB_REPOSITORY }}:${{ env.IMAGE_TAG }} + - name: Release notification if: ${{ env.VERSION != 'dev' && matrix.os == 'ubuntu-20-16-cores'}} env: diff --git a/Cargo.lock b/Cargo.lock index 07c9ed2729..ac96c0eb72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2142,7 +2142,7 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "dozer-api" -version = "0.1.20" +version = "0.1.21" dependencies = [ "Inflector", "actix-cors", @@ -2179,7 +2179,7 @@ dependencies = [ [[package]] name = "dozer-cache" -version = "0.1.20" +version = "0.1.21" dependencies = [ "ahash 0.8.3", "criterion", @@ -2200,7 +2200,7 @@ dependencies = [ [[package]] name = "dozer-core" -version = "0.1.20" +version = "0.1.21" dependencies = [ "crossbeam", "daggy", @@ -2213,7 +2213,7 @@ dependencies = [ [[package]] name = "dozer-ingestion" -version = "0.1.20" +version = "0.1.21" dependencies = [ "base64 0.21.0", "bson", @@ -2253,7 +2253,7 @@ dependencies = [ [[package]] name = "dozer-log" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-types", "futures-util", @@ -2262,7 +2262,7 @@ dependencies = [ [[package]] name = "dozer-log-js" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-log", "dozer-types", @@ -2271,7 +2271,7 @@ dependencies = [ [[package]] name = "dozer-log-python" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-log", "dozer-types", @@ -2280,7 +2280,7 @@ dependencies = [ [[package]] name = "dozer-orchestrator" -version = "0.1.20" +version = "0.1.21" dependencies = [ "clap 4.1.11", "ctrlc", @@ -2311,7 +2311,7 @@ dependencies = [ [[package]] name = "dozer-sql" -version = "0.1.20" +version = "0.1.21" dependencies = [ "ahash 0.8.3", "bloom", @@ -2337,7 +2337,7 @@ dependencies = [ [[package]] name = "dozer-storage" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-types", "lmdb-rkv", @@ -2348,7 +2348,7 @@ dependencies = [ [[package]] name = "dozer-tests" -version = "0.1.20" +version = "0.1.21" dependencies = [ "ahash 0.8.3", "async-trait", @@ -2379,7 +2379,7 @@ dependencies = [ [[package]] name = "dozer-tracing" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-types", "metrics-exporter-prometheus", @@ -2393,7 +2393,7 @@ dependencies = [ [[package]] name = "dozer-types" -version = "0.1.20" +version = "0.1.21" dependencies = [ "ahash 0.8.3", "arrow", @@ -2425,7 +2425,7 @@ dependencies = [ [[package]] name = "dozer-utils" -version = "0.1.20" +version = "0.1.21" dependencies = [ "dozer-types", ] diff --git a/dozer-api/Cargo.toml b/dozer-api/Cargo.toml index c58a9d95bd..7c156e4b05 100644 --- a/dozer-api/Cargo.toml +++ b/dozer-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-api" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-cache/Cargo.toml b/dozer-cache/Cargo.toml index c2dfa21e16..a266a8ad94 100644 --- a/dozer-cache/Cargo.toml +++ b/dozer-cache/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-cache" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-core/Cargo.toml b/dozer-core/Cargo.toml index b6ea759a23..f0ef6ca8e2 100644 --- a/dozer-core/Cargo.toml +++ b/dozer-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-core" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-ingestion/Cargo.toml b/dozer-ingestion/Cargo.toml index 1a1c1dab75..2d8fcdda74 100644 --- a/dozer-ingestion/Cargo.toml +++ b/dozer-ingestion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-ingestion" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-log-js/Cargo.toml b/dozer-log-js/Cargo.toml index 0f3d1ec979..ebc8424a29 100644 --- a/dozer-log-js/Cargo.toml +++ b/dozer-log-js/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-log-js" -version = "0.1.20" +version = "0.1.21" description = "Node.js binding for reading Dozer logs" authors = ["getdozer/dozer-dev"] license = "Apache-2.0" diff --git a/dozer-log-js/package-lock.json b/dozer-log-js/package-lock.json index dd0b355115..5535f8b8c9 100644 --- a/dozer-log-js/package-lock.json +++ b/dozer-log-js/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dozer-js/log", - "version": "0.1.20", + "version": "0.1.21", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dozer-js/log", - "version": "0.1.20", + "version": "0.1.21", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/dozer-log-js/package.json b/dozer-log-js/package.json index 4711cef0a4..432732a41b 100644 --- a/dozer-log-js/package.json +++ b/dozer-log-js/package.json @@ -1,6 +1,6 @@ { "name": "@dozerjs/log", - "version": "0.1.20", + "version": "0.1.21", "description": "Node.js binding for reading Dozer logs", "main": "build/log.node", "scripts": { diff --git a/dozer-log-python/Cargo.toml b/dozer-log-python/Cargo.toml index 9b0f7913c3..63d7cfef56 100644 --- a/dozer-log-python/Cargo.toml +++ b/dozer-log-python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-log-python" -version = "0.1.20" +version = "0.1.21" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/dozer-log/Cargo.toml b/dozer-log/Cargo.toml index 31c452091b..228f43e787 100644 --- a/dozer-log/Cargo.toml +++ b/dozer-log/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-log" -version = "0.1.20" +version = "0.1.21" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/dozer-orchestrator/Cargo.toml b/dozer-orchestrator/Cargo.toml index b1c1c86bc3..1ea7c365f3 100644 --- a/dozer-orchestrator/Cargo.toml +++ b/dozer-orchestrator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-orchestrator" -version = "0.1.20" +version = "0.1.21" edition = "2021" default-run = "dozer" authors = ["getdozer/dozer-dev"] diff --git a/dozer-sql/Cargo.toml b/dozer-sql/Cargo.toml index 277ed3cd1c..488f80f337 100644 --- a/dozer-sql/Cargo.toml +++ b/dozer-sql/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-sql" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-storage/Cargo.toml b/dozer-storage/Cargo.toml index f7fff78be9..26b8097f5f 100644 --- a/dozer-storage/Cargo.toml +++ b/dozer-storage/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-storage" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-tests/Cargo.toml b/dozer-tests/Cargo.toml index 080be75b95..72691b3a5d 100644 --- a/dozer-tests/Cargo.toml +++ b/dozer-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-tests" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-tracing/Cargo.toml b/dozer-tracing/Cargo.toml index 7a8a487f2a..253773a943 100644 --- a/dozer-tracing/Cargo.toml +++ b/dozer-tracing/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-tracing" -version = "0.1.20" +version = "0.1.21" edition = "2021" authors = ["getdozer/dozer-dev"] diff --git a/dozer-types/Cargo.toml b/dozer-types/Cargo.toml index 31aa568133..45176c0dd6 100644 --- a/dozer-types/Cargo.toml +++ b/dozer-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-types" -version = "0.1.20" +version = "0.1.21" authors = ["getdozer/dozer-dev"] edition = "2021" diff --git a/dozer-utils/Cargo.toml b/dozer-utils/Cargo.toml index c44304e74c..ea9d3bcbd7 100644 --- a/dozer-utils/Cargo.toml +++ b/dozer-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dozer-utils" -version = "0.1.20" +version = "0.1.21" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html