Compare commits
No commits in common. "1c21d3ad65954f674e9a1cd317cab21ef3b6aa18" and "f1f17cdb448b2736bc813b8cde17448f0f98d2ac" have entirely different histories.
1c21d3ad65
...
f1f17cdb44
@ -26,8 +26,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-debug-
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -44,6 +43,7 @@ jobs:
|
|||||||
# path: frontend/playwright-report/
|
# path: frontend/playwright-report/
|
||||||
# retention-days: 30
|
# retention-days: 30
|
||||||
|
|
||||||
|
|
||||||
deploy-staging:
|
deploy-staging:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240118
|
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240118
|
||||||
@ -65,8 +65,8 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-release-
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --target $CARGO_TARGET
|
cargo build --release --target $CARGO_TARGET
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Staging
|
- name: Deploy to Staging
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir ~/.ssh
|
||||||
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
@ -116,8 +116,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-release-
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -125,9 +124,9 @@ jobs:
|
|||||||
strip target/$CARGO_TARGET/release/rot
|
strip target/$CARGO_TARGET/release/rot
|
||||||
cd frontend && npm install && npm run build
|
cd frontend && npm install && npm run build
|
||||||
|
|
||||||
- name: Deploy to production
|
- name: Deploy to Main
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir ~/.ssh
|
||||||
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# 2. Tag the image: `docker tag <id> git.hofer.link/ruderverein-donau-linz/rowing-ci:<date>`
|
# 2. Tag the image: `docker tag <id> git.hofer.link/ruderverein-donau-linz/rowing-ci:<date>`
|
||||||
# 3. Push the image: `docker push git.hofer.link/ruderverein-donau-linz/rowing-ci:<date>`
|
# 3. Push the image: `docker push git.hofer.link/ruderverein-donau-linz/rowing-ci:<date>`
|
||||||
|
|
||||||
|
|
||||||
FROM rust:1.75.0
|
FROM rust:1.75.0
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y sqlite3
|
RUN apt-get update && apt-get install -y sqlite3
|
||||||
|
Loading…
Reference in New Issue
Block a user