Skip to content

Commit

Permalink
Prepare release (#68)
Browse files Browse the repository at this point in the history
* Update changelog

* Fix CD

* Bump
  • Loading branch information
MaeIsBad authored Oct 27, 2023
1 parent ab4b7e1 commit 1ae0376
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 16 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,19 @@ jobs:

- name: Create container
run: |-
for arch in amd64 arm64; do
rust_arch="$([ "$arch" = "arm64" ] && echo aarch64 || echo x86_64)-unknown-linux-musl"
ctr="$(buildah from --arch $arch scratch)"
buildah copy "$ctr" "./localauth0-$rust_arch/localauth0" "/localauth0"
buildah copy "$ctr" ./web/ /web
buildah config --env 'RUST_LOG error,localauth0=info' --cmd '["/localauth0"]' "$ctr"
buildah commit "$ctr" "localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
done
buildah manifest create "localauth0"
for arch in amd64 arm64; do
rust_arch="$([ "$arch" = "arm64" ] && echo aarch64 || echo x86_64)-unknown-linux-musl"
ctr="$(buildah from --arch $arch scratch)"
buildah copy "$ctr" "./localauth0-$rust_arch/localauth0" "/localauth0"
buildah copy "$ctr" ./web/ /web
buildah config \
--env 'RUST_LOG=error,localauth0=info' \
--cmd '["/localauth0"]' \
"$ctr"
buildah commit --manifest "localauth0" "$ctr"
done
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -92,6 +96,5 @@ jobs:

- name: Push
run: >-
buildah push --all
"localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
"public.ecr.aws/c6i9l4r6/localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
buildah manifest push --all localauth0
"public.ecr.aws/c6i9l4r6/localauth0:${{ inputs.tag_name || github.event.release.tag_name }}"
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.6.2] - 2023-10-27

Note: images temporairly use the public.ecr.aws/c6i9l4r6/localauth0 registry.

### Added

- Native arm64 containers

### Chanaged

- Container size greatly reduced, going from over 300MiB to just a little over 5

---

## [0.6.1] - 2023-10-06

Note: images temporairly use the public.ecr.aws/c6i9l4r6/localauth0 registry.

### Changed
- No longer using pyxis as css library; using bulma instead.

---

## [0.6.0] - 2023-08-22

Note: images temporairly use the public.ecr.aws/c6i9l4r6/localauth0 registry.

### Added
- A /.well-known/openid-configuration making it easier to use localauth0 as a generic openid server

Expand Down Expand Up @@ -117,7 +135,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- First release 🎉


[Unreleased]: https://github.com/primait/localauth0/compare/0.6.1...HEAD

[Unreleased]: https://github.com/primait/localauth0/compare/0.6.2...HEAD
[0.6.2]: https://github.com/primait/localauth0/compare/0.6.1...0.6.2
[0.6.1]: https://github.com/primait/localauth0/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/primait/localauth0/compare/0.5.0...0.6.0
[0.5.0]: https://github.com/primait/localauth0/compare/0.4.1...0.5.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "localauth0"
version = "0.6.1"
version = "0.6.2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ With localauth0 you can fake your [auth0](https://auth0.com/) tenant and test it
In order to run localauth0 docker image execute the following:

```shell
docker run -d -p 3000:3000 public.ecr.aws/c6i9l4r6/localauth0:0.6.1
docker run -d -p 3000:3000 public.ecr.aws/c6i9l4r6/localauth0:0.6.2
```

By default, the container exposes an http server on the port 3000 and an https one on port 3001.
Expand Down Expand Up @@ -172,7 +172,7 @@ Add this snippet to your `docker-compose.yml` file and reference it in your app

```yaml
auth0:
image: public.ecr.aws/c6i9l4r6/localauth0:0.6.1
image: public.ecr.aws/c6i9l4r6/localauth0:0.6.2
environment:
LOCALAUTH0_CONFIG_PATH: /etc/localauth0.toml
volumes:
Expand Down

0 comments on commit 1ae0376

Please sign in to comment.