File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 image-name : flagsmith-api-test
5959 scan : false
6060
61+ docker-build-api-private-test :
62+ name : Build API Enterprise Test Image
63+ uses : ./.github/workflows/.reusable-docker-build.yml
64+ with :
65+ target : api-private-test
66+ image-name : flagsmith-api-private-test
67+ scan : false
68+ secrets :
69+ secrets : |
70+ github_private_cloud_token=${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
71+
6172 docker-build-e2e :
6273 name : Build E2E Image
6374 uses : ./.github/workflows/.reusable-docker-build.yml
Original file line number Diff line number Diff line change 4343 "test": "testing",
4444 "chore": "chore"
4545 }
46- ignored_types : ' [] '
46+ ignored_types : " [] "
4747
4848 docker-prepare-report-comment :
4949 if : github.event.pull_request.draft == false && needs.permissions-check.outputs.can-write == 'true'
@@ -104,6 +104,19 @@ jobs:
104104 comment : ${{ needs.docker-prepare-report-comment.result == 'success' }}
105105 scan : false
106106
107+ docker-build-api-private-test :
108+ if : needs.permissions-check.outputs.can-write == 'true'
109+ needs : [permissions-check, docker-prepare-report-comment]
110+ name : Build API Enterprise Test Image
111+ uses : ./.github/workflows/.reusable-docker-build.yml
112+ with :
113+ target : api-private-test
114+ image-name : flagsmith-api-private-test
115+ scan : false
116+ secrets :
117+ secrets : |
118+ github_private_cloud_token=${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
119+
107120 docker-build-e2e :
108121 if : github.event.pull_request.draft == false && !cancelled()
109122 needs : [permissions-check, docker-prepare-report-comment]
Original file line number Diff line number Diff line change 3939
4040# - Internal stages
4141# * api-test [build-python]
42+ # * api-private-test [build-python-private]
4243
4344# - Target (shippable) stages
4445# * private-cloud-api [api-runtime-private, build-python-private]
@@ -158,13 +159,23 @@ RUN apk add xmlsec
158159# * api-test [build-python]
159160FROM build-python AS api-test
160161
162+ COPY api /build/
163+
161164RUN make install-packages opts='--with dev'
162165
163- WORKDIR /app
166+ CMD [ "make" , "test" ]
164167
165- COPY api /app/
168+ # * api-private-test [build-python-private]
169+ FROM build-python-private AS api-private-test
170+
171+ COPY api /build/
172+
173+ RUN make install-packages opts='--with dev' && \
174+ make integrate-private-tests && \
175+ git config --global --unset credential.helper && \
176+ rm -f ${HOME}/.git-credentials
166177
167- CMD ["make test" ]
178+ CMD ["make" , " test" ]
168179
169180# - Target (shippable) stages
170181# * private-cloud-api [api-runtime-private, build-python-private]
You can’t perform that action at this time.
0 commit comments