Skip to content

Commit

Permalink
Merge pull request #18 from w-henderson/release-manager
Browse files Browse the repository at this point in the history
Rewritten release manager to allow for automatic updates
  • Loading branch information
w-henderson committed Jun 28, 2022
2 parents 2f1fa61 + 38a72ba commit 355b6d2
Show file tree
Hide file tree
Showing 26 changed files with 1,324 additions and 327 deletions.
4 changes: 2 additions & 2 deletions axiom/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Index extends React.Component {
<span>Integrate Together.</span>

<div className="bigButtons">
<a href="/download/windows">
<a href="/release/windows">
<DownloadIcon />
<span>Download for Windows</span>
</a>
Expand Down Expand Up @@ -116,7 +116,7 @@ class Index extends React.Component {
</div>

<div className="bigButtons">
<a href="/download/windows">
<a href="/release/windows">
<DownloadIcon />
<span>Download for Windows</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion axiom/src/pages/invite/[code].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class InvitePage extends React.Component<InvitePageProps, InvitePageState> {
<span>Open in Equion</span>
</a>

<a href="/download/windows">
<a href="/release/windows">
<DownloadIcon />
<span>Download Equion</span>
</a>
Expand Down
9 changes: 6 additions & 3 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ services:
restart: always
expose:
- 80
volumes:
- releaseData:/releaseData
environment:
EQUION_USER: w-henderson
EQUION_REPO: Equion
EQUION_TOKEN: "$EQUION_TOKEN"
EQUION_MATRIX_DATA_DIR: "/releaseData"

gateway:
image: nginx:latest
restart: always
depends_on:
- download_manager
- server
- voice
- web
Expand All @@ -57,7 +58,9 @@ services:
volumes:
- ./nginx.prod.conf:/etc/nginx/nginx.conf
- website:/var/www/html
- releaseData:/releaseData

volumes:
data:
website:
releaseData:
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ services:
restart: always
expose:
- 80
volumes:
- releaseData:/releaseData
environment:
EQUION_USER: w-henderson
EQUION_REPO: Equion
EQUION_TOKEN: "$EQUION_TOKEN"
EQUION_MATRIX_DATA_DIR: "/releaseData"

gateway:
image: nginx:latest
restart: always
depends_on:
- download_manager
- server
- voice
- web
Expand All @@ -61,7 +62,9 @@ services:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./cert:/cert
- website:/var/www/html
- releaseData:/releaseData

volumes:
data:
website:
releaseData:
9 changes: 0 additions & 9 deletions matrix/Cargo.toml

This file was deleted.

14 changes: 7 additions & 7 deletions matrix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM rust:latest

RUN USER=root cargo new --bin equion_download_manager
RUN USER=root cargo new --bin matrix

WORKDIR /equion_download_manager
WORKDIR /matrix

COPY ./Cargo.toml ./Cargo.toml
COPY ./Cargo.lock ./Cargo.lock
COPY ./server/Cargo.toml ./Cargo.toml
COPY ./server/Cargo.lock ./Cargo.lock

RUN cargo build --release

RUN rm src/*.rs
COPY ./src ./src
COPY ./server/src ./src

RUN rm ./target/release/deps/equion*
RUN rm ./target/release/deps/matrix*
RUN cargo build --release

EXPOSE 80
CMD ["./target/release/equion_download_manager"]
CMD ["./target/release/matrix"]
1 change: 1 addition & 0 deletions matrix/cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading

0 comments on commit 355b6d2

Please sign in to comment.