[static-web] Avoid copying .git + anything DOAP



commit ba9dc9f4e893ab0d22eb3a840f09b9dd673b1ae9
Author: Andrea Veri <averi redhat com>
Date:   Mon Jan 31 15:37:49 2022 +0100

    Avoid copying .git + anything DOAP

 .gitlab-ci.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5edcd53..a47ec62 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,23 @@
 stages:
+  - build
   - deploy
 
+rsync:
+  stage: build
+  image: alpine:latest
+  script:
+    - apk add --no-cache rsync
+    - rsync -avz --exclude=*.doap --exclude=.git $CI_PROJECT_DIR public/
+  artifacts:
+    paths:
+      - public
+  only:
+    refs:
+      - master
+  except:
+    changes:
+      - "*.doap"
+
 s3:
   stage: deploy
   image:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]