push commit images for both CUDA versions
@@ -314,20 +314,22 @@ jobs:
run: |
make docker-run DOCKER_IMAGE_NAME=$DOCKER_IMAGE_NAME ARGS='test-install'
- - name: Upload commit image
- # Only upload the 10.2 image.
- if: github.event_name == 'push' && matrix.cuda == '10.2'
+ - name: Authenticate to Docker Hub
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- docker push $DOCKER_IMAGE_NAME
- - name: Upload release image
- # Only run this for releases.
- if: github.event_name == 'release'
+ - name: Upload image
+ if: github.event_name == 'push'
run: |
- docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push $DOCKER_IMAGE_NAME
+ - name: Upload default commit image
+ # CUDA 10.2 is currently our default.
+ if: github.event_name == 'push' && matrix.cuda == '10.2'
+ run: |
+ docker tag $DOCKER_IMAGE_NAME allennlp/commit:${GITHUB_SHA}
+ docker push allennlp/commit:${GITHUB_SHA}
+
- name: Upload latest image
# CUDA 10.2 is currently our default.
if: github.event_name == 'release' && matrix.cuda == '10.2'
