File tree 1 file changed +25
-3
lines changed
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 24
24
branches :
25
25
- development
26
26
27
+ env :
28
+ RELEASE_REGISTRY : gcr.io
29
+ RELEASE_REPO : iguazio
30
+ ARTIFACTORY_REGISTRY : artifactory.iguazeng.com:6555
31
+
27
32
jobs :
28
33
release :
29
34
name : Release Docker Images
30
- runs-on : ubuntu-latest
35
+ runs-on : [ self-hosted, Linux ]
31
36
steps :
32
37
33
38
- name : Set unstable
@@ -43,14 +48,31 @@ jobs:
43
48
44
49
- uses : actions/checkout@v3
45
50
51
+ - name : Login to artifactory
52
+ run : docker login -u ${{ secrets.ARTIFACTORY_DOCKER_USERNAME }} -p ${{ secrets.ARTIFACTORY_DOCKER_PASSWORD }} ${{ env.ARTIFACTORY_REGISTRY }}
53
+
46
54
- name : Login to GCR
47
55
run : |
48
56
echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin https://gcr.io
49
57
env :
50
58
GCR_JSON_KEY : ${{ secrets.GCR_IGUAZIO_JSON_KEY }}
51
59
52
- - name : Build image
60
+ - name : Build image [GCR]
61
+ run : make build
62
+ env :
63
+ REPOSITORY : ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}
64
+
65
+ - name : Push image [GCR]
66
+ run : make push
67
+ env :
68
+ REPOSITORY : ${{ env.RELEASE_REGISTRY }}/${{ env.RELEASE_REPO }}
69
+
70
+ - name : Build image [Artifactory]
53
71
run : make build
72
+ env :
73
+ REPOSITORY : ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}
54
74
55
- - name : Push image
75
+ - name : Push image [Artifactory]
56
76
run : make push
77
+ env :
78
+ REPOSITORY : ${{ env.ARTIFACTORY_REGISTRY }}/${{ env.RELEASE_REPO }}
You can’t perform that action at this time.
0 commit comments