diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index d5e44ea..4f8ecb6 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -8,31 +8,22 @@ env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} jobs: - test: + deploy-main: runs-on: ubuntu-latest - container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240215 - steps: - - uses: actions/checkout@v3 - - - name: Tests - run: cargo test --verbose - - deploy: - runs-on: ubuntu-latest - container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240215 + container: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240118 if: github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v3 - - name: Deploy + - name: Deploy to production run: | mkdir -p ~/.ssh ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - scp ./output/* $SSH_USER@$SSH_HOST:/var/www/html/ris/ + scp ./output/* $SSH_USER@$SSH_HOST:/var/www/html/recipes/ env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_HOST: ${{ secrets.SSH_HOST }} diff --git a/.gitignore b/.gitignore index afd4ccc..e63ecff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target -.history \ No newline at end of file +/output +.history