Skip to content

Commit 8e2a63b

Browse files
committed
fix pipline
1 parent 3c4bbc8 commit 8e2a63b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
working-directory: ./server
2424
run: ./mvnw --batch-mode --update-snapshots package
2525

26-
build:
26+
build-images:
2727
needs: test
2828
runs-on: ubuntu-latest
2929
steps:
@@ -36,14 +36,18 @@ jobs:
3636
mkdir .ansible
3737
echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .ansible/vault_key
3838
39-
- name: Install Python requirements
40-
run: pip install -r requirements.txt
39+
- uses: actions/setup-python@v4
40+
with:
41+
python-version: "3.9"
42+
cache: "pip" # caching pip dependencies
43+
- run: pip install -r requirements.txt
44+
45+
- uses: buildpacks/github-actions/[email protected]
4146

42-
- name: Build Docker images
43-
run: python scripts/build.py ${{ secrets.GITHUB_TOKEN }}
47+
- run: python scripts/build.py ${{ secrets.GITHUB_TOKEN }}
4448

4549
deploy:
46-
needs: build
50+
needs: build-images
4751
runs-on: ubuntu-latest
4852
steps:
4953
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)