Commit 607d12f3 authored by Seblu's avatar Seblu
Browse files

Limit CI build to tagged commits

parent c8cfacfa
Loading
Loading
Loading
Loading
Loading
+17 −19
Original line number Diff line number Diff line
---

workflow:
  rules:
  - if: '$CI_COMMIT_TAG'


makepkg:
  stage: build
  script:
@@ -7,13 +12,9 @@ makepkg:
  artifacts:
    name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
    expire_in: 3 month
    paths:
    ths:
    - config.x86_64
    - "*.pkg.tar.*"
  only:
    - branches
    - tags
    - web

commitpkg:
  stage: deploy
@@ -26,6 +27,3 @@ commitpkg:
  - sleep 300 && kill "$SSH_AGENT_PID" & disown
  - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  - seblu-push
  only:
    - tags
    - web