Skip to content

Commit

Permalink
push version-tagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Feb 29, 2020
1 parent 2c9f238 commit 2ebcbfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pythonpublish.yml
Expand Up @@ -71,11 +71,13 @@ jobs:
export TRIMESH_VERSION=$(python -c "exec(open('trimesh/version.py','r').read()); print(__version__)")
# tag the image with the short git sha
export IMAGE_TAG=${GIT_SHA::7}
docker build -t mikedh/trimesh:latest -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest .
docker build -t mikedh/trimesh:latest -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -t $ECR_REGISTRY/$ECR_REPOSITORY:$TRIMESH_VERSION .
# push image to AWS ECR tagged by sha
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
# push image to ECR tagged latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
# push image to ECR tagged with trimesh version
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$TRIMESH_VERSION
- name: Logout of registries
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -33,7 +33,7 @@ ENV PATH="/home/user/conda/bin:$PATH"
# -p no:warnings suppresses 10,000 useless upstream warnings
# -p no:alldep means that tests will fail if a dependency is missing
# -x will exit on first test failure
# RUN pytest -x -p no:warnings -p no:alldep /tmp/trimesh/tests
RUN pytest -x -p no:warnings -p no:alldep /tmp/trimesh/tests

# environment variables for software rendering
ENV XVFB_WHD="1920x1080x24"\
Expand Down

0 comments on commit 2ebcbfa

Please sign in to comment.