Skip to content

Commit

Permalink
Merge pull request space-ros#150 from mkhansenbot/auto_tag_image
Browse files Browse the repository at this point in the history
Auto tag release image (fix space-ros#148)
  • Loading branch information
EzraBrooks authored May 16, 2024
2 parents ebd1d0b + 326f3f5 commit d1a5621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/earthly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
run: |
echo $DOCKER_HUB_TOKEN | docker login --username osrfbot --password-stdin
cd spaceros
earthly --ci --push +image
earthly --ci --push +image --tag=${{ github.ref_name }}
3 changes: 2 additions & 1 deletion spaceros/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ build-testing:
image:
FROM +rosdep
ARG VCS_REF
ARG tag='latest'

# Specify the docker image metadata
LABEL org.label-schema.schema-version="1.0"
Expand All @@ -216,4 +217,4 @@ image:
COPY entrypoint.sh /ros_entrypoint.sh
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
SAVE IMAGE --push osrf/space-ros:latest
SAVE IMAGE --push osrf/space-ros:latest osrf/space-ros:$tag

0 comments on commit d1a5621

Please sign in to comment.