Skip to content

Commit

Permalink
Prepare v0.1.11 (#1203)
Browse files Browse the repository at this point in the history
* Version bump

* Update release workflow
  • Loading branch information
mediuminvader authored Mar 10, 2023
1 parent d46eced commit 9029376
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 68 deletions.
55 changes: 9 additions & 46 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ jobs:
release:
name: Release
runs-on:
group: Default Larger Runners
labels: ${{ matrix.os }}
needs: prepare
timeout-minutes: 60
Expand All @@ -74,17 +73,20 @@ jobs:
include:
- os: ubuntu-20-16-cores
file_name: dozer
target: x86_64-unknown-linux-gnu
asset_name: dozer-linux-amd64
# - os: macos-12
# file_name: dozer
# asset_name: dozer-macos-amd64
- os: macos-12
file_name: dozer
target: x86_64-apple-darwin
asset_name: dozer-macos-amd64
steps:
- uses: actions/checkout@v3
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
Expand All @@ -106,15 +108,15 @@ jobs:
${{ runner.os }}-cargo-release-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-cargo-release-
- name: Prepare build package
run: cargo build --features=snowflake --release
- name: Build package
run: cargo build --release --target ${{ matrix.target }}

- name: Prepare release assets
shell: bash
run: |
mkdir -p release
cp {LICENSE,README.md,CHANGELOG.md} release/ 2> /dev/null || echo "Copy Failed...Ignoring.."
cp target/release/${{matrix.file_name}} release/
cp target/${{ matrix.target }}/release/${{matrix.file_name}} release/
mv release/ ${{matrix.asset_name}}-${{ needs.prepare.outputs.version }}/
Expand All @@ -140,45 +142,7 @@ jobs:
run: |
echo "RELEASE_NAME=${{env.RELEASE_NAME}}" >> $GITHUB_ENV
echo "VERSION=${{env.VERSION}}" >> $GITHUB_ENV
echo "ARTIFACT_URL=https://${{ env.BUCKET_NAME }}.s3.ap-southeast-1.amazonaws.com/${{ env.VERSION }}/${{ env.RELEASE_NAME }}" >> $GITHUB_ENV
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: deployer
aws-region: ap-southeast-1

- name: Upload release to S3
id: upload_s3
run: |
aws s3 cp $RELEASE_NAME s3://${{ env.BUCKET_NAME }}/$VERSION/$RELEASE_NAME
- name: Build, tag, and push image to Amazon ECR
id: build_push_ecr
if: matrix.os == 'ubuntu-20-16-cores'
env:
IMAGE_TAG: ${{ needs.prepare.outputs.version }}
run: |
SHORT_GITHUB_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)
echo "SHORT_GITHUB_SHA=$SHORT_GITHUB_SHA" >> $GITHUB_OUTPUT
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ECR_REGISTRY
docker build -f ci/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$SHORT_GITHUB_SHA .
docker push $ECR_REGISTRY/$ECR_REPOSITORY --all-tags
- name: Update latest image if releasing
if: (needs.prepare.outputs.prerelease == 'false') && (matrix.os == 'ubuntu-20-16-cores')
env:
IMAGE_TAG: ${{ needs.prepare.outputs.version }}
run: |
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
# - name: Clean up Amazon ECR untagged images
# run: |
# IMAGES_TO_DELETE=$( aws ecr list-images --region us-east-1 --repository-name $ECR_REPOSITORY --filter "tagStatus=UNTAGGED" --query 'imageIds[*]' --output json )
# aws ecr batch-delete-image --region us-east-1 --repository-name $ECR_REPOSITORY --image-ids "$IMAGES_TO_DELETE" || true

- name: Trigger BuildKite integration tests
run: |
curl -X POST "https://api.buildkite.com/v2/organizations/dozer-data-pte-ltd/pipelines/integration-tests/builds" \
Expand All @@ -195,7 +159,6 @@ jobs:
"fields": [
{ "name": "Repository", "value": "[getdozer/dozer](https://github.com/getdozer/dozer)", "inline": true },
{ "name": "Binary", "value": "[${{ env.RELEASE_NAME }}](${{ env.ARTIFACT_URL }})", "inline": true },
{ "name": "Using Docker", "value": "`docker run ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY}}:${{ env.VERSION }} dozer -h`"},
{ "name": "Using Binary", "value": "`dozer -h`"},
{ "name": "Release Notes", "value": "Release notes can be found [here](https://github.com/getdozer/dozer/releases/tag/${{env.VERSION}})"}
],
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dozer-admin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-admin"
version = "0.1.10"
version = "0.1.11"
authors = ["getdozer/dozer-dev"]
edition = "2021"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion dozer-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-api"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-cache"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-core"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-ingestion/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-ingestion"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-orchestrator"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
default-run = "dozer"
authors = ["getdozer/dozer-dev"]
Expand Down
2 changes: 1 addition & 1 deletion dozer-sql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-sql"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-storage"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-tests"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-tracing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-tracing"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
authors = ["getdozer/dozer-dev"]

Expand Down
2 changes: 1 addition & 1 deletion dozer-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dozer-types"
version = "0.1.10"
version = "0.1.11"
authors = ["getdozer/dozer-dev"]
edition = "2021"

Expand Down

0 comments on commit 9029376

Please sign in to comment.