From e63384dd9a20f134210fcb4322aabec895e8407c Mon Sep 17 00:00:00 2001 From: Kouhai Date: Thu, 1 Feb 2024 10:09:23 -0800 Subject: [PATCH] th: streaming builds --- .woodpecker.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a091d7754d..4bb3861b8b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -46,12 +46,28 @@ pipeline: commands: - eval $DATE_COMMAND - export TAG=$${COMMIT_DATE}.$CI_COMMIT_SHA && echo $${TAG} - - docker image build -f Dockerfile --build-arg SOURCE_TAG=$CI_COMMIT_SHA . -t $NAME:latest - - docker tag $NAME:latest $NAME:$TAG + - echo docker image build -f Dockerfile --build-arg SOURCE_TAG=$CI_COMMIT_SHA . -t $NAME:$${TAG}-server + - echo docker image build -f streaming/Dockerfile --build-arg SOURCE_TAG=$CI_COMMIT_SHA . -t $NAME:$${TAG}-streaming + - docker image build -f Dockerfile --build-arg SOURCE_TAG=$CI_COMMIT_SHA . -t $NAME:$${TAG}-server + - docker image build -f streaming/Dockerfile --build-arg SOURCE_TAG=$CI_COMMIT_SHA . -t $NAME:$${TAG}-streaming + - echo docker tag $NAME:$${TAG}-server $NAME:latest-server + - echo docker tag $NAME:$${TAG}-server $NAME:latest + - echo docker tag $NAME:$${TAG}-server $NAME:$${TAG} + - echo docker tag $NAME:$${TAG}-server $NAME:latest + - docker tag $NAME:$${TAG}-server $NAME:latest-server + - docker tag $NAME:$${TAG}-server $NAME:latest + - docker tag $NAME:$${TAG}-server $NAME:$${TAG} + - docker tag $NAME:$${TAG}-server $NAME:latest # idk what's actually persisted between steps # /shrug this works, so,??? - - echo $${TAG} > tags.txt - - echo latest >> tags.txt + # this is racy but hopefully we don't kick off two CIs at the same time + - echo -n > tags.txt + - echo $${TAG} | tee -a tags.txt + - echo $${TAG}-server | tee -a tags.txt + - echo $${TAG}-streaming | tee -a tags.txt + - echo latest | tee -a tags.txt + - echo latest-server | tee -a tags.txt + - echo latest-streaming | tee -a tags.txt # maybe we can use tags someday,,, # tag-tag: