Skip to content

Commit

Permalink
Register Deploy workflow by running it once with no credentials (see h…
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaMuravjov committed May 25, 2024
1 parent a85909e commit d3841d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dockerhub-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy to DockerHub

on:
push:
workflow_dispatch:
inputs:
docker_username:
Expand Down Expand Up @@ -36,13 +37,13 @@ jobs:
run: |
docker buildx build --load \
--platform ${{ matrix.platform }} \
-t cfpq/py_algo:${{ github.event.inputs.image_tag }}-${{ matrix.platform }} \
-t cfpq/py_algo:tmp \
.
- name: Run tests
run: |
docker run --rm \
cfpq/py_algo:${{ github.event.inputs.image_tag }}-${{ matrix.platform }} bash -c "
cfpq/py_algo:tmp -c "
echo 'System Info:';
uname -a;
pytest test -v -m 'CI'"
Expand Down

0 comments on commit d3841d9

Please sign in to comment.