Compare commits
33 Commits
f1f17cdb44
...
1c21d3ad65
Author | SHA1 | Date | |
---|---|---|---|
1c21d3ad65 | |||
fd99bc6f66 | |||
c5673559d0 | |||
54f9dc22e0 | |||
9267b4dbc8 | |||
6e8947a928 | |||
0ab121df8e | |||
7c7877d275 | |||
1e02b2f5bb | |||
ca11e72d00 | |||
5631b0551c | |||
97154ef4b9 | |||
e5311b4fab | |||
76a1dbccbf | |||
03947001d5 | |||
95fb07f1e9 | |||
22ee941ce0 | |||
6bee538b55 | |||
88d533c838 | |||
57c1e13c14 | |||
ba132a5735 | |||
0794671707 | |||
d0adee74da | |||
5fec65e38f | |||
0b7711ed91 | |||
7be76f3ce8 | |||
865c55cd18 | |||
b258a5ac6e | |||
62171d72fe | |||
1f734b75a0 | |||
4af887c2b4 | |||
cf1cd0c126 | |||
c6da8b3db1 |
@ -26,7 +26,8 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-debug-
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@ -43,7 +44,6 @@ jobs:
|
||||
# path: frontend/playwright-report/
|
||||
# retention-days: 30
|
||||
|
||||
|
||||
deploy-staging:
|
||||
runs-on: ubuntu-latest
|
||||
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240118
|
||||
@ -65,8 +65,8 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-release-
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --release --target $CARGO_TARGET
|
||||
@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
- name: Deploy to Staging
|
||||
run: |
|
||||
mkdir ~/.ssh
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
@ -116,7 +116,8 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-release-
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@ -124,9 +125,9 @@ jobs:
|
||||
strip target/$CARGO_TARGET/release/rot
|
||||
cd frontend && npm install && npm run build
|
||||
|
||||
- name: Deploy to Main
|
||||
- name: Deploy to production
|
||||
run: |
|
||||
mkdir ~/.ssh
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
@ -5,7 +5,6 @@
|
||||
# 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>`
|
||||
|
||||
|
||||
FROM rust:1.75.0
|
||||
|
||||
RUN apt-get update && apt-get install -y sqlite3
|
||||
|
Loading…
Reference in New Issue
Block a user