Skip to content

Commit

Permalink
ROS: tag nightly as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Nov 23, 2023
1 parent 25e7210 commit 44084b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ros_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
VERSION=pr-${{ github.event.number }}
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $$VERSION = "nightly" ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
MINOR=${VERSION%.*}
MAJOR=${MINOR%.*}
Expand All @@ -61,7 +64,6 @@ jobs:
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 44084b8

Please sign in to comment.