Skip to content

Commit b2a2392

Browse files
committed
✅ Smoke test tooling before pushing
1 parent 1a176e7 commit b2a2392

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
- run: |
4848
pip install pipenv
4949
pipenv install --deploy --dev
50-
- run: echo ${{ matrix.key }}
5150
- name: Generate Dockerfile from config
5251
run: pipenv run python -m build_versions.main --dockerfile-with-context '${{ toJSON(matrix) }}'
5352
- name: Set up QEMU
@@ -59,7 +58,17 @@ jobs:
5958
with:
6059
username: ${{ secrets.DOCKERHUB_USERNAME }}
6160
password: ${{ secrets.DOCKERHUB_TOKEN }}
62-
- name: Build and push
61+
- name: Build image
62+
uses: docker/build-push-action@v4
63+
with:
64+
context: .
65+
file: dockerfiles/${{ matrix.key }}.Dockerfile
66+
load: true
67+
tags: nikolaik/python-nodejs:${{ matrix.key }}
68+
- name: Run smoke tests
69+
run: |
70+
docker run --rm nikolaik/python-nodejs:${{ matrix.key }} sh -c "node --version && npm --version && yarn --version && python --version && pip --version && pipenv --version && poetry --version"
71+
- name: Push image
6372
uses: docker/build-push-action@v4
6473
with:
6574
context: .

0 commit comments

Comments
 (0)