From 8e2a63b88b4ddc9b0212c8d322071a98657dff6d Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Sat, 25 Mar 2023 21:14:05 +0000 Subject: [PATCH] fix pipline --- .github/workflows/build.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7af92e2..a6c509b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: working-directory: ./server run: ./mvnw --batch-mode --update-snapshots package - build: + build-images: needs: test runs-on: ubuntu-latest steps: @@ -36,14 +36,18 @@ jobs: mkdir .ansible echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .ansible/vault_key - - name: Install Python requirements - run: pip install -r requirements.txt + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + cache: "pip" # caching pip dependencies + - run: pip install -r requirements.txt + + - uses: buildpacks/github-actions/setup-pack@v5.0.0 - - name: Build Docker images - run: python scripts/build.py ${{ secrets.GITHUB_TOKEN }} + - run: python scripts/build.py ${{ secrets.GITHUB_TOKEN }} deploy: - needs: build + needs: build-images runs-on: ubuntu-latest steps: - uses: actions/checkout@v3