From adff1174fc7416dbe976498c9144d269feded40c Mon Sep 17 00:00:00 2001 From: cauta Date: Thu, 16 May 2024 14:56:03 +0700 Subject: [PATCH] update release workflow for latest tag --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e964420..44ef3b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,19 +25,22 @@ jobs: run: | cd app VERSION=$(jq -r '.version' package.json) - docker build -f apps/onebox/Dockerfile --target production -t registry.gitlab.com/cauta/onebox:${VERSION} . + docker build -f apps/onebox/Dockerfile --target production -t registry.gitlab.com/cauta/onebox:${VERSION} -t registry.gitlab.com/cauta/onebox:latest . docker push registry.gitlab.com/cauta/onebox:${VERSION} + docker push registry.gitlab.com/cauta/onebox:latest - name: Build and push Monitor Docker image run: | cd app VERSION=$(jq -r '.version' package.json) - docker build -f apps/monitor-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-monitor:${VERSION} . + docker build -f apps/monitor-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-monitor:${VERSION} -t registry.gitlab.com/cauta/crypitor-monitor:latest . docker push registry.gitlab.com/cauta/crypitor-monitor:${VERSION} + docker push registry.gitlab.com/cauta/crypitor-monitor:latest - name: Build and push Worker Docker image run: | cd app VERSION=$(jq -r '.version' package.json) - docker build -f apps/worker-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-worker:${VERSION} . + docker build -f apps/worker-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-worker:${VERSION} -t registry.gitlab.com/cauta/crypitor-worker:latest . docker push registry.gitlab.com/cauta/crypitor-worker:${VERSION} + docker push registry.gitlab.com/cauta/crypitor-worker:latest