Test scheduled job

This commit is contained in:
Aarni Halinen
2022-10-31 22:36:28 +02:00
parent 1405d89d9a
commit 632eedea9c
+2 -10
View File
@@ -143,19 +143,11 @@ deploy:production:
after_script: after_script:
- docker logout "$CI_REGISTRY" - docker logout "$CI_REGISTRY"
cleanup:test:
image: docker:stable
stage: cleanup
only:
- develop
script:
echo test
docker_prune:dev: docker_prune:dev:
image: docker:stable image: docker:stable
stage: cleanup stage: cleanup
only: only:
- develop - schedules
environment: environment:
name: dev name: dev
url: http://api.dev.sahkoinsinoorikilta.fi url: http://api.dev.sahkoinsinoorikilta.fi
@@ -177,7 +169,7 @@ docker_prune:prod:
image: docker:stable image: docker:stable
stage: cleanup stage: cleanup
only: only:
- develop - schedules
environment: environment:
name: production name: production
url: https://api.sahkoinsinoorikilta.fi url: https://api.sahkoinsinoorikilta.fi