Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
yx_xuliang committed Aug 20, 2024
1 parent aa0c552 commit 315d306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ jobs:
docker login -u ${USERNAME} -p ${PASSWORD}
for file in `echo ${ALL_CHANGED_FILES}|tr " " "\n" | sort |uniq`; do
CHANGEFOLDER=$(echo ${file}|awk -F"/" '{print $1}')
cd ${CHANGEFOLDER}
VERSION=$(grep -w VERSION Dockerfile |awk -F":" '{print $2}')
VERSION=$(grep -w VERSION ${CHANGEFOLDER}/Dockerfile |awk -F":" '{print $2}')
echo ${VERSION}
IMAGENAME=$(echo pilgrima/${CHANGEFOLDER}:${VERSION})
echo ${IMAGENAME}
docker buildx build -t ${IMAGENAME} .
docker buildx build -t ${IMAGENAME} ${CHANGEFOLDER}
docker push ${IMAGENAME}
docker tag ${IMAGENAME} $(echo pilgrima/${CHANGEFOLDER}:latest)
docker push $(echo pilgrima/${CHANGEFOLDER}:latest)
Expand Down
2 changes: 1 addition & 1 deletion jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM pilgrima/alpine-glibc:latest
## VERSION:v1.8.0_401
# VERSION:v1.8.0_401
MAINTAINER pilgrima
ADD jre1.8.tar.gz /usr/java/jdk/
ENV JAVA_HOME /usr/java/jdk/jre1.8.0_401
Expand Down

0 comments on commit 315d306

Please sign in to comment.