-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathusher.yml
More file actions
27 lines (23 loc) · 800 Bytes
/
usher.yml
File metadata and controls
27 lines (23 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '2'
vars:
registry: fh1-harbor01.dun.fh
service_name: vaultex
tasks:
build:
do: shell
command: docker build --force-rm -t <%=registry%>/findmypast/<%=service_name%>:<%=version%> .
push:
do: shell
command: docker push <%=registry%>/findmypast/<%=service_name%>:<%=version%>
# Run unit tests inside a container
test:
do: shell
command: docker run --name vaultex-test-runner --rm <%=registry%>/findmypast/<%=service_name%>:<%=version%> mix test
# Publish to Hex Repository
publish:
do: shell
command: docker run -e HEX_USER -e HEX_PASSWORD --name vaultex-publisher --rm <%=registry%>/findmypast/<%=service_name%>:<%=version%> ./publish.sh
env:
- HEX_USER=<%=user%>
- HEX_PASSWORD=<%=password%>
- LOCAL_PWD=<%=password%>