Add woodpecker pipe file
This commit is contained in:
parent
8f75c2f80d
commit
1d68048814
17
.woodpecker.yaml
Normal file
17
.woodpecker.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: docker:dind
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
IMAGE_NAME: gitea.b7d.nl/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
commands:
|
||||||
|
- docker login gitea.b7d.nl -u $GITEA_USER -p $GITEA_TOKEN
|
||||||
|
- docker build -t $IMAGE_NAME:$CI_COMMIT_SHA -f Dockerfile-prod .
|
||||||
|
- docker tag $IMAGE_NAME:$CI_COMMIT_SHA $IMAGE_NAME:latest
|
||||||
|
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
|
||||||
|
- docker push $IMAGE_NAME:latest
|
||||||
Loading…
x
Reference in New Issue
Block a user