[static-web] Consolidate into one job



commit 3c5ec75bc6472e5b5af69735b3d40077ebb1a7ff
Author: Andrea Veri <averi redhat com>
Date:   Mon Jan 31 15:42:15 2022 +0100

    Consolidate into one job

 .gitlab-ci.yml | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a47ec62..d79c054 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,29 +1,14 @@
 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:
     name: amazon/aws-cli
     entrypoint: [""]
   script:
+    - mkdir public
+    - rsync -avz --exclude=*.doap --exclude=.git $CI_PROJECT_DIR public/
     - aws --version
     - aws s3 rm s3://$S3_BUCKET --recursive
     - aws s3 cp public s3://$S3_BUCKET --recursive


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