Skip to content

Commit

Permalink
Updated Dockerfile to fetch the latest release from the I2C_OLED repo
Browse files Browse the repository at this point in the history
  • Loading branch information
crismc committed Nov 15, 2022
1 parent fda615d commit c28b136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion I2C_OLED/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN \
py3-pillow \
py3-smbus

RUN git clone -b 'v1.0.0' --single-branch --depth 1 https://github.com/crismc/rpi_i2c_oled.git /I2C_OLED
ENV LATEST_RELEASE=$(curl --silent 'https://api.github.com/repos/crismc/rpi_i2c_oled/releases/latest' | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
RUN git clone -b $LATEST_RELEASE --single-branch --depth 1 https://github.com/crismc/rpi_i2c_oled.git /I2C_OLED

COPY run.sh /
WORKDIR /data
Expand Down

0 comments on commit c28b136

Please sign in to comment.