Update CI/CD pipeline and Dockerfile for Flutter web app: rename image tags and adjust output paths

This commit is contained in:
n.nakhostin
2025-08-31 17:04:40 +03:30
parent f542a99979
commit 67cf79577c
2 changed files with 11 additions and 10 deletions
+9 -8
View File
@@ -4,23 +4,24 @@
kind: pipeline
type: docker
name: (dev) build flutter web and push to artifactory
name: (main) build flutter web and push to artifactory
steps:
- name: tag tender-pwa image
- name: tag pwa
image: alpine/git:2.40.1
commands:
- APP_VERSION=pwa-$(git rev-list HEAD --count --no-merges)
- echo "Flutter PWA Version tags $APP_VERSION"
- echo -n "$APP_VERSION" > .tags
- name: tender pwa push to artifactory
- APP_VERSION=$(git rev-list HEAD --count --no-merges)-$DRONE_BRANCH
- echo "APP Version tags $APP_VERSION"
- echo -n "$APP_VERSION" >> .tags
- name: tm pwa push to artifactory
image: plugins/docker
settings:
dockerfile: "Dockerfile"
username: "cicd"
password:
from_secret: "REGISTRY_PASSWORD"
repo: "artifactory.ravanertebat.ir/citizenclub/tm_app"
repo: "artifactory.ravanertebat.ir/tm/pwa"
registry: "artifactory.ravanertebat.ir"
build_args:
- FLUTTER_VERSION=3.29.3
@@ -31,6 +32,6 @@ node:
trigger:
branch:
- dev
- main
event:
- custom