File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -54,29 +54,27 @@ jobs:
54
54
python -m pip install poetry
55
55
poetry --version
56
56
57
+
57
58
- run : |
58
59
sudo apt-get -y install jq
59
60
poetry run pip install tox uw-it-build-fingerprinter
60
- - run : |
61
- poetry run tox -e build-layers -- \
62
- -t ${{ env.version }} --release ${{ env.version }} --cache \
63
- --build-arg HUSKY_DIRECTORY_VERSION=${{ env.version }}
61
+
62
+ - name : Build and test
63
+ run : |
64
+ poetry run tox -e build-layers -- -t ${{ env.version }} --release ${{ env.version }} --cache --build-arg HUSKY_DIRECTORY_VERSION=${{ env.version }}
64
65
poetry run tox -e unit-tests
65
- # Build layers with the -k option to avoid installing a lot of
66
- # unnecessary dependencies. We can also skip black/flake8 for
67
- # this phase, because the code has already been accepted into
68
- # the repository.
69
- name: Validate build
70
66
71
67
- name : Create release ${{ needs.configure-release.outputs.version }}
72
68
uses : ncipollo/release-action@v1
73
69
with :
74
70
tag : ${{ needs.configure-release.outputs.version }}
75
71
if : github.ref == 'refs/heads/main'
76
72
77
- - run : docker push gcr.io/uwit-mci-iam/husky-directory:${{ env.version }}
73
+ - name : Push Docker image
74
+ run : docker push gcr.io/uwit-mci-iam/husky-directory:${{ env.version }}
78
75
if : github.ref == 'refs/heads/main'
79
76
80
- - run : |
77
+ - name : Deploy
78
+ run : |
81
79
./scripts/deploy.sh -t dev -v ${{ env.version }} \
82
80
${{ github.ref != 'refs/heads/main' && '-x' || '' }}
You can’t perform that action at this time.
0 commit comments