Skip to content

Commit ab03dce

Browse files
authored
Merge pull request #150 from mkhansenbot/auto_tag_image
Auto tag release image (fix #148)
2 parents abf6552 + 3ef3807 commit ab03dce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/earthly-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
run: |
5252
echo $DOCKER_HUB_TOKEN | docker login --username osrfbot --password-stdin
5353
cd spaceros
54-
earthly --ci --push +image
54+
earthly --ci --push +image --tag=${{ github.ref_name }}

spaceros/Earthfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ build-testing:
200200
image:
201201
FROM +rosdep
202202
ARG VCS_REF
203+
ARG tag='latest'
203204

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

0 commit comments

Comments
 (0)