Add woodpecker pipe file
This commit is contained in:
parent
095b8d2a85
commit
8f75c2f80d
17
.woodpecker/prod-build-image.yaml
Normal file
17
.woodpecker/prod-build-image.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: master
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: docker
|
||||
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