Skip to content

Commit

Permalink
Add tag "latest" for the most recent rpy2/distro
Browse files Browse the repository at this point in the history
  • Loading branch information
lgautier committed Jan 18, 2020
1 parent 0939277 commit 2190d62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dockerimage.yml
Expand Up @@ -10,6 +10,7 @@ jobs:
ubuntu_release: ["18.04", "19.10"]
env:
RPY2_VERSION: master
LATEST_UBUNTU: "19.10"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -28,6 +29,10 @@ jobs:
IMAGE_TAG=rpy2/base-ubuntu:"${RPY2_VERSION}"-"${{ matrix.ubuntu_release }}"
docker tag "${IMAGE_TAG}" "${IMAGE_TAG}"
docker push "${IMAGE_TAG}"
if [ "${{ matrix.ubuntu_release }}" == "${LATEST_UBUNTU}" ]; then
docker tag "${IMAGE_TAG}" rpy2/base-ubuntu:latest
docker push rpy2/base-ubuntu:latest
fi
- name: Build jupyter image
run: |
docker build jupyter \
Expand All @@ -43,6 +48,10 @@ jobs:
IMAGE_TAG=rpy2/jupyter-ubuntu:"${RPY2_VERSION}"-"${{ matrix.ubuntu_release }}"
docker tag "${IMAGE_TAG}" "${IMAGE_TAG}"
docker push "${IMAGE_TAG}"
if [ "${{ matrix.ubuntu_release }}" == "${LATEST_UBUNTU}" ]; then
docker tag "${IMAGE_TAG}" rpy2/jupyter-ubuntu:latest
docker push rpy2/jupyter-ubuntu:latest
fi
- name: Build jupyter_ds image
run: |
docker build jupyter_ds \
Expand All @@ -58,4 +67,8 @@ jobs:
IMAGE_TAG=rpy2/jupyter_ds-ubuntu:"${RPY2_VERSION}"-"${{ matrix.ubuntu_release }}"
docker tag "${IMAGE_TAG}" "${IMAGE_TAG}"
docker push "${IMAGE_TAG}"
if [ "${{ matrix.ubuntu_release }}" == "${LATEST_UBUNTU}" ]; then
docker tag "${IMAGE_TAG}" rpy2/jupyter_ds-ubuntu:latest
docker push rpy2/jupyter_ds-ubuntu:latest
fi

0 comments on commit 2190d62

Please sign in to comment.