Skip to content

Commit

Permalink
Update to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Nov 3, 2022
1 parent 8d1a95f commit c920f93
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "translations"]
[submodule "lemmybb-translations"]
url = https://github.com/LemmyNet/lemmybb_translations.git
path = lemmybb-translations
[submodule "lemmy-translations"]
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lemmy_bb"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

[profile.release]
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ WORKDIR app
COPY --from=builder /app/target/release/lemmy_bb .
COPY assets assets
COPY templates templates
COPY translations translations
COPY lemmy-translations lemmy-translations
COPY lemmybb-translations lemmybb-translations
ENTRYPOINT ["/app/lemmy_bb"]
1 change: 1 addition & 0 deletions lemmybb-translations
Submodule lemmybb-translations added at 56bc31
15 changes: 15 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -ex

new_tag="$1"

old_tag=$(head -3 Cargo.toml | tail -1 | cut -d'"' -f 2)
sed -i "0,/version = \"$old_tag\"/s//version = \"$new_tag\"/g" Cargo.toml

git add Cargo.toml
git commit -m "Update to $new_tag"
git tag "$new_tag"
git push --tags

sudo docker build . -f docker/Dockerfile -t "lemmynet/lemmybb:$new_tag"
sudo docker push "lemmynet/lemmybb:$new_tag"

0 comments on commit c920f93

Please sign in to comment.