Updated CI/CD config to only build if relevant files are updated

This commit is contained in:
2023-03-18 12:10:53 +08:00
parent bcf4e5130d
commit a124a6745a

View File

@@ -4,8 +4,10 @@ variables:
build: build:
image: docker:23.0.1 image: docker:23.0.1
stage: build stage: build
# services: rules:
# - docker:23.0.1-dind - changes:
- Dockerfile
- scripts/**/*
script: script:
- docker buildx create --use default - docker buildx create --use default
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY