feature_cicd_fix #14

Closed
keedosn wants to merge 2 commits from feature_cicd_fix into develop
Showing only changes of commit 69465498ad - Show all commits

View File

@ -63,7 +63,9 @@ steps:
- docker push docker.pbiernat.dev/nginx-php:dev - docker push docker.pbiernat.dev/nginx-php:dev
when: when:
branch: develop branch: develop
event: push event:
#- pull_request
- push
volumes: volumes:
- name: docker-sock - name: docker-sock
path: /var/run path: /var/run
@ -71,12 +73,16 @@ steps:
- name: build_feature - name: build_feature
image: plugins/docker image: plugins/docker
commands: commands:
- env
- sleep 5 - sleep 5
- docker build -t docker.pbiernat.dev/nginx-php:$CI_COMMIT_BRANCH . - docker build -t docker.pbiernat.dev/nginx-php:$CI_COMMIT_BRANCH .
- docker images --format "{{.Repository}}:{{.Tag}}" | grep nginx-php:${CI_COMMIT_BRANCH} - docker images --format "{{.Repository}}:{{.Tag}}" | grep nginx-php:${CI_COMMIT_BRANCH}
when: when:
branch: feature_* branch:
event: push - feature_*
- develop
event:
- push
volumes: volumes:
- name: docker-sock - name: docker-sock
path: /var/run path: /var/run
@ -95,7 +101,9 @@ steps:
- docker push docker.pbiernat.dev/nginx-php:$CI_COMMIT_BRANCH - docker push docker.pbiernat.dev/nginx-php:$CI_COMMIT_BRANCH
when: when:
branch: develop branch: develop
event: pull_request event:
- pull_request
- push
volumes: volumes:
- name: docker-sock - name: docker-sock
path: /var/run path: /var/run