Update .drone.yml
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-06-13 13:22:26 +00:00
parent 2e74af0ce2
commit 9674d571e2
+4 -10
View File
@@ -15,16 +15,10 @@ steps:
commands: commands:
- | - |
set -e set -e
case "$DRONE_BRANCH" in SHORT_SHA=$(echo "$DRONE_COMMIT_SHA" | cut -c1-8)
main) echo prod;; IMG_TAG="${DRONE_BUILD_NUMBER}-${DRONE_BRANCH}"
uat) echo uat;; echo -n "$IMG_TAG,$SHORT_SHA" > .tags
dev) echo dev;; echo "Image tags -> $IMG_TAG , $SHORT_SHA"
*) echo dev;;
esac > .environment
- echo "Branch ${DRONE_BRANCH}, Environment $(cat .environment)"
- APP_VERSION=$(cat .environment)-${DRONE_BUILD_NUMBER}
- echo "APP Version tag $APP_VERSION"
- echo -n "$APP_VERSION" >> .tags
- mkdir -p ./artifacts/go/bin ./artifacts/go/config - mkdir -p ./artifacts/go/bin ./artifacts/go/config
- go env - go env
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./artifacts/go/bin/web ./cmd/web/main.go - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./artifacts/go/bin/web ./cmd/web/main.go