Skip to content

Commit

Permalink
Removing validation that just increases time to get live by forcing u…
Browse files Browse the repository at this point in the history
…s to deploy a test version and then wait for the real version to deploy every time too...
  • Loading branch information
jonburchel committed Jul 28, 2024
1 parent 0d37acb commit 4a98d2d
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/uufsolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,9 @@ jobs:
release.zip
!venv/
validate-deploy:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Unpack and validate virtual environment
run: |
tar -xzf venv.tar.gz
source venv/bin/activate
export PATH=$PATH:/home/.local/bin:/home/site/wwwroot/venv/bin
pip install --upgrade pip
pip install -r requirements.txt
python app.py &
sleep 10 # Give the app some time to start
curl -f http://localhost:50505
pkill -f python # Kill the app after validation
deploy:
runs-on: ubuntu-latest
needs: validate-deploy
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
Expand Down

0 comments on commit 4a98d2d

Please sign in to comment.