Skip to content

ci: debug

ci: debug #719

Workflow file for this run

name: 'CI/CD'
on:
push:
jobs:
# check:
# runs-on: ubuntu-latest
# container:
# image: debian:bookworm-slim # use the same image as our docker runner
# steps:
# - name: Clone repo (shallow)
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'
# - name: Set up GAMS
# shell: bash # required for the source command
# env:
# GAMS_LICENSE: ${{ secrets.GAMS_LICENSE }}
# run: |
# source ./scripts/setup-gams.sh
# echo "/opt/conda/bin" >> "$GITHUB_PATH"
# echo "$GAMS_PATH" >> "$GITHUB_PATH"
# echo "GMSPYTHONLIB=/opt/conda/envs/gams/lib/libpython3.10.so" >> "$GITHUB_ENV"
# - name: Cache Venv dependencies
# uses: actions/cache@v4
# with:
# path: ${{ github.workspace }}/venv
# # update venv when setup script or any solver has changed:
# key: venv-${{ runner.os }}-${{ hashFiles('scripts/ci-setup-solvers.sh', 'solvers/**') }}
# restore-keys: |
# venv-${{ runner.os }}-
# - name: Install solver dependencies
# run: ./scripts/ci-setup-solvers.sh
# - name: Run checks
# shell: bash # required for the source command
# run: | # change to "./gradlew check --info" for more debugging output.
# source /opt/conda/bin/activate gams
# ./gradlew check --info
# - name: Archive test reports
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: test-report
# path: build/reports/tests/test/
# - name: Archive style reports
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: style-report
# path: build/reports/checkstyle/
deploy-staging:
runs-on: ubuntu-latest
# needs: check
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}
steps:
- name: Deploy via SSH and Docker Compose
uses: appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
debug: true
script: |
whoami
echo "Deploying ${{ github.event.repository.name }} to ${{ github.ref_name }} environment"
sh /root/ProvideQ/${{ github.event.repository.name }}/deploy.sh ${{ github.ref_name }}