@@ -53,41 +53,22 @@ jobs:
53
53
- name : Set up Docker Buildx
54
54
uses : docker/setup-buildx-action@v1
55
55
56
- - name : Login to DockerHub
56
+ - name : Login to Github Container Registry
57
57
uses : docker/login-action@v1
58
58
with :
59
- username : ${{ secrets.DOCKERHUB_USERNAME }}
60
- password : ${{ secrets.DOCKERHUB_TOKEN }}
59
+ registry : ghcr.io
60
+ username : ${{ github.repository_owner }}
61
+ password : ${{ secrets.GITHUB_TOKEN }}
61
62
62
63
- name : Build and push
63
64
uses : docker/build-push-action@v2
64
65
with :
65
66
context : external/nifi
67
+ pull : true
66
68
push : true
67
- platforms : linux/amd64,linux/arm64
69
+ # cache-from: type=registry,ref=microsoft/data-appliance-gx/nifi:latest
68
70
cache-to : type=inline
69
- tags : beardyinc/nifi:latest
70
-
71
-
72
- # we can enable the v2 of the docker build once the improved container support has been enabled for the repo:
73
- # https://bit.ly/3hB5sJ6
74
-
75
- # - name: Login to Github Container Registry
76
- # uses: docker/login-action@v1
77
- # with:
78
- # registry: ghcr.io
79
- # username: ${{ github.repository_owner }}
80
- # password: ${{ secrets.GITHUB_TOKEN }}
81
- #
82
- # - name: Build and push
83
- # uses: docker/build-push-action@v2
84
- # with:
85
- # context: external/nifi
86
- # pull: true
87
- # push: true
88
- # # cache-from: type=registry,ref=microsoft/data-appliance-gx/nifi:latest
89
- # cache-to: type=inline
90
- # tags: ghcr.io/microsoft/data-appliance-gx/nifi:latest
71
+ tags : ghcr.io/microsoft/data-appliance-gx/nifi:latest
91
72
92
73
build-connector-image :
93
74
runs-on : ubuntu-latest
@@ -107,11 +88,12 @@ jobs:
107
88
- name : Set up Docker Buildx
108
89
uses : docker/setup-buildx-action@v1
109
90
110
- - name : Login to DockerHub
91
+ - name : Login to Github Container Registry
111
92
uses : docker/login-action@v1
112
93
with :
113
- username : ${{ secrets.DOCKERHUB_USERNAME }}
114
- password : ${{ secrets.DOCKERHUB_TOKEN }}
94
+ registry : ghcr.io
95
+ username : ${{ github.repository_owner }}
96
+ password : ${{ secrets.GITHUB_TOKEN }}
115
97
116
98
- name : Build and push
117
99
uses : docker/build-push-action@v2
@@ -121,4 +103,5 @@ jobs:
121
103
push : true
122
104
platforms : linux/amd64,linux/arm64
123
105
cache-to : type=inline
124
- tags : beardyinc/dagx-demo:latest
106
+ # tags: beardyinc/dagx-demo:latest
107
+ tags : ghcr.io/microsoft/data-appliance-gx/dagx-demo:latest
0 commit comments