Skip to content

Commit 6080ba4

Browse files
author
abarbie
committed
filtering for latest tag in dockerfile
1 parent bb1af14 commit 6080ba4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build-arm64v8.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- name: Build with Docker Compose
1313
working-directory: ./PiCar-X
1414
run: |
15-
TAG=arm64v8 docker compose -f docker-compose-core.yml build
15+
TAG=arm64v8 docker compose -f docker-compose-core.yml build --no-cache
16+
TAG=arm64v8 docker compose -f docker-compose-dtp.yml build --no-cache
1617
1718
# - name: Run pytest in Docker container
1819
# run: |
@@ -25,4 +26,4 @@ jobs:
2526
- name: Push to Docker Hub
2627
working-directory: ./PiCar-X
2728
run: |
28-
TAG=arm64v8 docker compose -f docker-compose-core.yml push
29+
TAG=arm64v8 docker compose -f docker-compose-dtp.yml push

PiCar-X/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG TAG=latest
2-
3-
FROM ${TAG:+${TAG}/}ros:noetic as rosnoetic
2+
ARG ISLATEST=${TAG##latest}
3+
FROM ${ISLATEST:+${TAG}/}ros:noetic as rosnoetic
44
WORKDIR /root/catkin_ws/
55
RUN apt update -y \
66
&& apt-get install -y python3-pip python3-setuptools python3-catkin-tools wget unzip curl nano \

0 commit comments

Comments
 (0)