@@ -24,20 +24,23 @@ jobs:
24
24
uses : actions/setup-python@v2
25
25
with :
26
26
python-version : 3.9
27
- - name : Tag, and push image to DockerHub
27
+ - name : Tag, and push unstable image to DockerHub
28
+ run : |
29
+ docker tag consoleme consoleme/consoleme:unstable
30
+ docker push --all-tags consoleme/consoleme
31
+ - name : Tag, and push versioned image to DockerHub on tag
32
+ if : github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
28
33
run : |
29
34
export CONSOLEME_VERSION=$(python3 setup.py -q --version | sed -r 's/\+/\./g')
30
35
export CONSOLEME_MAJOR=$(cut -d '.' -f 1 <<< "$CONSOLEME_VERSION")
31
36
export CONSOLEME_MINOR=$(cut -d '.' -f 1,2 <<< "$CONSOLEME_VERSION")
32
37
export CONSOLEME_PATCH=$(cut -d '.' -f 1,2,3 <<< "$CONSOLEME_VERSION")
33
- export CONSOLEME_DEV=$(cut -d '.' -f 1,2,3,4 <<< "$CONSOLEME_VERSION")
34
- docker tag consoleme:latest consoleme/consoleme:latest
35
- docker tag consoleme:latest consoleme/consoleme:$CONSOLEME_VERSION
36
- docker tag consoleme:latest consoleme/consoleme:$CONSOLEME_MAJOR
37
- docker tag consoleme:latest consoleme/consoleme:$CONSOLEME_MINOR
38
- docker tag consoleme:latest consoleme/consoleme:$CONSOLEME_PATCH
39
- docker tag consoleme:latest consoleme/consoleme:$CONSOLEME_DEV
38
+ docker tag consoleme consoleme/consoleme:$CONSOLEME_VERSION
39
+ docker tag consoleme consoleme/consoleme:$CONSOLEME_MAJOR
40
+ docker tag consoleme consoleme/consoleme:$CONSOLEME_MINOR
41
+ docker tag consoleme consoleme/consoleme:$CONSOLEME_PATCH
40
42
docker push --all-tags consoleme/consoleme
43
+
41
44
deploy_consoleme_demo_site :
42
45
name : Deploy Demo Site
43
46
if : github.repository == 'Netflix/consoleme'
0 commit comments