Files
tm_app/.drone.yml
T
Karim Pirzargar 99d30a6eb5 update build
2026-03-09 16:12:50 +03:30

49 lines
1.3 KiB
YAML

########### MOODIO TEST ###########
###################################
kind: pipeline
type: docker
name: (pwa-test) build pwa and scp to test server
steps:
- name: build flutter
image: docker-mirror.ravanertebat.ir/ghcr/cirruslabs/flutter:3.38.10
commands:
- flutter --version
- |
set -e
case "$DRONE_BRANCH" in
master) echo prod;;
uat) echo uat;;
dev) echo test;;
*) echo dev;;
esac > .environment
- echo "Branch ${DRONE_BRANCH}, Environment $(cat .environment)"
- APP_VERSION=$(cat .environment)-${DRONE_BUILD_NUMBER}
- echo "APP Version tags $APP_VERSION"
- echo -n "$APP_VERSION,latest" >> .tags
- mkdir -p ./artifacts/flutter
- rm -rf build
- flutter pub get
- flutter build web --release --output=build/tm_pwa
- ls -ltrh build/tm_pwa
- name: build admin and push to artifactory
image: plugins/docker
settings:
# dockerfile: Dockerfile-admin
username: cicd
password:
from_secret: REGISTRY_PASSWORD
repo: artifactory.ravanertebat.ir/tm/pwa
registry: artifactory.ravanertebat.ir
node:
tag: aecde-docker-runner
trigger:
branch:
- master
- uat
- dev
event:
- custom