You've already forked oncall
mirror of
https://github.com/linkedin/oncall.git
synced 2025-11-28 23:20:23 +02:00
tag docker images
This commit is contained in:
committed by
Daniel Wang
parent
454ced9efa
commit
2c589b2f2b
@@ -1,15 +1,15 @@
|
|||||||
variables:
|
variables:
|
||||||
app_name: "oncall"
|
app_name: "oncall"
|
||||||
app_version: ""
|
app_version: ""
|
||||||
git_tag: "master"
|
git_tag: "master"
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- type: "docker"
|
- type: "docker"
|
||||||
image: "ubuntu:16.04"
|
image: "ubuntu:16.04"
|
||||||
changes:
|
changes:
|
||||||
- 'EXPOSE 8080'
|
- 'EXPOSE 8080'
|
||||||
- 'CMD ["sudo", "-EHu", "oncall", "bash", "-c", "source /home/oncall/env/bin/activate && python /home/oncall/entrypoint.py"]'
|
- 'CMD ["sudo", "-EHu", "oncall", "bash", "-c", "source /home/oncall/env/bin/activate && python /home/oncall/entrypoint.py"]'
|
||||||
commit: True
|
commit: True
|
||||||
|
|
||||||
provisioners:
|
provisioners:
|
||||||
- type: "shell"
|
- type: "shell"
|
||||||
@@ -66,3 +66,14 @@ provisioners:
|
|||||||
inline:
|
inline:
|
||||||
- "sudo -Hu oncall mv -f /home/oncall/daemons/uwsgi-docker.yaml /home/oncall/daemons/uwsgi.yaml"
|
- "sudo -Hu oncall mv -f /home/oncall/daemons/uwsgi-docker.yaml /home/oncall/daemons/uwsgi.yaml"
|
||||||
- sudo -Hu oncall cp /home/oncall/source/configs/config.docker.yaml /home/oncall/config/config.yaml
|
- sudo -Hu oncall cp /home/oncall/source/configs/config.docker.yaml /home/oncall/config/config.yaml
|
||||||
|
|
||||||
|
post-processors:
|
||||||
|
- type: "docker-tag"
|
||||||
|
repository: "quay.io/oncall/oncall"
|
||||||
|
tag: "{{ user `app_version` }}"
|
||||||
|
only: ["docker"]
|
||||||
|
|
||||||
|
- type: "docker-tag"
|
||||||
|
repository: "quay.io/oncall/oncall"
|
||||||
|
tag: "latest"
|
||||||
|
only: ["docker"]
|
||||||
|
|||||||
Reference in New Issue
Block a user