Skip to content

Commit 8049461

Browse files
committed
delete
1 parent 4f2cef1 commit 8049461

File tree

3 files changed

+151
-150
lines changed

3 files changed

+151
-150
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/dockers_builder.yml

+151-150
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Navitia Dockers
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- dev
@@ -113,52 +114,52 @@ jobs:
113114
# 051314639660: corefront sbx
114115
registries: "162230498103,110444322584,051314639660"
115116

116-
- name: Create master and builder docker image
117+
- name: Create builder docker image
117118
run: |
118119
docker build -f docker/debian11/Dockerfile-builder-kraken -t navitia/builder_debian11 .
119120
120121
- name: Build packages in master docker
121-
run: docker run -v `pwd`:/build/navitia/ navitia/builder
122-
123-
- name: Create navitia images
124-
run: |
125-
for component in ${{env.backend_debian11_components}}; do
126-
echo "********* Building $component ***************"
127-
docker build -t navitia/$component --build-arg GITHUB_TOKEN=${{ steps.ci-core-app-token.outputs.token }} -f docker/debian11/Dockerfile-${component} .
128-
done
129-
130-
- name: Push dev images on SBX ECR
131-
if: github.ref == 'refs/heads/dev'
132-
run: |
133-
for component in ${{env.backend_debian11_components}}; do
134-
component_tag=${SBX_ECR_REGISTRY_BACKEND}/${component}:dev
135-
docker tag navitia/$component ${component_tag}
136-
docker push ${component_tag}
137-
done
138-
139-
- name: Push release images on PRD ECR
140-
if: startsWith(github.ref, 'refs/tags/')
141-
run: |
142-
# Kraken
143-
kraken_tag=${PRD_ECR_REGISTRY}/navitia-kraken-kraken:${{ needs.common_variables.outputs.RELEASE_TAG }}
144-
docker tag navitia/kraken ${kraken_tag}
145-
docker push ${kraken_tag}
146-
147-
# Tyr-beat
148-
tyr_beat_tag=${PRD_ECR_REGISTRY}/navitia-tyr-tyrbeat:${{ needs.common_variables.outputs.RELEASE_TAG }}
149-
docker tag navitia/tyr-beat ${tyr_beat_tag}
150-
docker push ${tyr_beat_tag}
151-
152-
# Tyr-worker
153-
tyr_worker_tag=${PRD_ECR_REGISTRY}/navitia-tyr-tyrworker:${{ needs.common_variables.outputs.RELEASE_TAG }}
154-
docker tag navitia/tyr-worker ${tyr_worker_tag}
155-
docker push ${tyr_worker_tag}
156-
157-
- name: failure notification
158-
if: failure()
159-
run: |
160-
sudo apt update && sudo apt install -y httpie
161-
echo '{"text":":warning: Github Actions: workflow dockers_builder debian11_images failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
122+
run: docker run -v `pwd`:/navitia/navitia/ navitia/builder_debian11
123+
124+
# - name: Create navitia images
125+
# run: |
126+
# for component in ${{env.backend_debian11_components}}; do
127+
# echo "********* Building $component ***************"
128+
# docker build -t navitia/$component --build-arg GITHUB_TOKEN=${{ steps.ci-core-app-token.outputs.token }} -f docker/debian11/Dockerfile-${component} .
129+
# done
130+
131+
# - name: Push dev images on SBX ECR
132+
# if: github.ref == 'refs/heads/dev'
133+
# run: |
134+
# for component in ${{env.backend_debian11_components}}; do
135+
# component_tag=${SBX_ECR_REGISTRY_BACKEND}/${component}:dev
136+
# docker tag navitia/$component ${component_tag}
137+
# docker push ${component_tag}
138+
# done
139+
140+
# - name: Push release images on PRD ECR
141+
# if: startsWith(github.ref, 'refs/tags/')
142+
# run: |
143+
# # Kraken
144+
# kraken_tag=${PRD_ECR_REGISTRY}/navitia-kraken-kraken:${{ needs.common_variables.outputs.RELEASE_TAG }}
145+
# docker tag navitia/kraken ${kraken_tag}
146+
# docker push ${kraken_tag}
147+
148+
# # Tyr-beat
149+
# tyr_beat_tag=${PRD_ECR_REGISTRY}/navitia-tyr-tyrbeat:${{ needs.common_variables.outputs.RELEASE_TAG }}
150+
# docker tag navitia/tyr-beat ${tyr_beat_tag}
151+
# docker push ${tyr_beat_tag}
152+
153+
# # Tyr-worker
154+
# tyr_worker_tag=${PRD_ECR_REGISTRY}/navitia-tyr-tyrworker:${{ needs.common_variables.outputs.RELEASE_TAG }}
155+
# docker tag navitia/tyr-worker ${tyr_worker_tag}
156+
# docker push ${tyr_worker_tag}
157+
158+
# - name: failure notification
159+
# if: failure()
160+
# run: |
161+
# sudo apt update && sudo apt install -y httpie
162+
# echo '{"text":":warning: Github Actions: workflow dockers_builder debian11_images failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
162163

163164
- name: clean up workspace
164165
if: ${{ always() }}
@@ -170,7 +171,7 @@ jobs:
170171
171172
debian11_front_images:
172173
runs-on: [self-hosted, corefront, sandbox]
173-
name: Build debian11 images ()
174+
name: Build debian11 front images
174175
needs: common_variables
175176
steps:
176177
- name: force chown to avoid errors
@@ -203,11 +204,11 @@ jobs:
203204

204205
- name: Create builder docker
205206
run: |
206-
docker build -f docker/debian11/Dockerfile-builder -t navitia/builder_debian11 .
207+
docker build -f docker/debian11/Dockerfile-builder -t navitia/builder .
207208
208209
- name: Build navitia
209210
run: |
210-
docker run -v `pwd`:/navitia/navitia/ navitia/builder_debian11
211+
docker run -v `pwd`:/navitia/navitia/ navitia/builder
211212
212213
- name: Create docker image Jormungandr
213214
run: |
@@ -220,46 +221,46 @@ jobs:
220221
- name: Create images for Instance configurator
221222
run: docker build -t navitia/instances-configurator -f docker/debian11/Dockerfile-instances-configurator .
222223

223-
- name: Push Jormungandr dev image on SBX ECR
224-
if: github.ref == 'refs/heads/dev'
225-
run: |
226-
jormun_tag=${SBX_ECR_REGISTRY_FRONT}/jormungandr:no_config_dev
227-
docker tag navitia/jormungandr_debian11 ${jormun_tag}
228-
docker push ${jormun_tag}
229-
230-
- name: Push Jormungandr release image on SBX ECR
231-
if: startsWith(github.ref, 'refs/tags/')
232-
run: |
233-
jormun_tag=${SBX_ECR_REGISTRY_FRONT}/jormungandr:no_config_${{ needs.common_variables.outputs.RELEASE_TAG }}
234-
docker tag navitia/jormungandr_debian11 ${jormun_tag}
235-
docker push ${jormun_tag}
236-
237-
- name: Push Tyr-Web dev image on SBX ECR
238-
if: github.ref == 'refs/heads/dev'
239-
run: |
240-
component_tag=${SBX_ECR_REGISTRY_FRONT}/tyr-web:dev
241-
docker tag navitia/tyr-web ${component_tag}
242-
docker push ${component_tag}
243-
244-
- name: Push Instances configurator dev image on SBX ECR
245-
if: github.ref == 'refs/heads/dev'
246-
run: |
247-
component_tag=${SBX_ECR_REGISTRY_FRONT}/instances-configurator:dev
248-
docker tag navitia/instances-configurator ${component_tag}
249-
docker push ${component_tag}
250-
251-
- name: Push Try-web release image on PRD ECR
252-
if: startsWith(github.ref, 'refs/tags/')
253-
run: |
254-
# Tyr-web
255-
tyr_web_tag=${PRD_ECR_REGISTRY}/navitia-tyr-web-tyr-web:${{ needs.common_variables.outputs.RELEASE_TAG }}
256-
docker tag navitia/tyr-web ${tyr_web_tag}
257-
docker push ${tyr_web_tag}
258-
259-
- name: failure notification
260-
if: failure()
261-
run: |
262-
echo '{"text":":warning: Github Actions: workflow dockers_builder debian11_images failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
224+
# - name: Push Jormungandr dev image on SBX ECR
225+
# if: github.ref == 'refs/heads/dev'
226+
# run: |
227+
# jormun_tag=${SBX_ECR_REGISTRY_FRONT}/jormungandr:no_config_dev
228+
# docker tag navitia/jormungandr_debian11 ${jormun_tag}
229+
# docker push ${jormun_tag}
230+
231+
# - name: Push Jormungandr release image on SBX ECR
232+
# if: startsWith(github.ref, 'refs/tags/')
233+
# run: |
234+
# jormun_tag=${SBX_ECR_REGISTRY_FRONT}/jormungandr:no_config_${{ needs.common_variables.outputs.RELEASE_TAG }}
235+
# docker tag navitia/jormungandr_debian11 ${jormun_tag}
236+
# docker push ${jormun_tag}
237+
238+
# - name: Push Tyr-Web dev image on SBX ECR
239+
# if: github.ref == 'refs/heads/dev'
240+
# run: |
241+
# component_tag=${SBX_ECR_REGISTRY_FRONT}/tyr-web:dev
242+
# docker tag navitia/tyr-web ${component_tag}
243+
# docker push ${component_tag}
244+
245+
# - name: Push Instances configurator dev image on SBX ECR
246+
# if: github.ref == 'refs/heads/dev'
247+
# run: |
248+
# component_tag=${SBX_ECR_REGISTRY_FRONT}/instances-configurator:dev
249+
# docker tag navitia/instances-configurator ${component_tag}
250+
# docker push ${component_tag}
251+
252+
# - name: Push Try-web release image on PRD ECR
253+
# if: startsWith(github.ref, 'refs/tags/')
254+
# run: |
255+
# # Tyr-web
256+
# tyr_web_tag=${PRD_ECR_REGISTRY}/navitia-tyr-web-tyr-web:${{ needs.common_variables.outputs.RELEASE_TAG }}
257+
# docker tag navitia/tyr-web ${tyr_web_tag}
258+
# docker push ${tyr_web_tag}
259+
260+
# - name: failure notification
261+
# if: failure()
262+
# run: |
263+
# echo '{"text":":warning: Github Actions: workflow dockers_builder debian11_images failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
263264

264265
- name: clean up workspace
265266
if: ${{ always() }}
@@ -269,68 +270,68 @@ jobs:
269270
rm -rf ./*
270271
rm -rf ./.??*
271272
272-
publish_aws:
273-
runs-on: [self-hosted, corefront, sandbox]
274-
name: Aws Dispatch (Dev)
275-
needs: [debian11_front_images, debian11_back_images, common_variables]
276-
steps:
277-
278-
- name: Generate token for aws images
279-
id: app-token
280-
uses: getsentry/[email protected]
281-
with:
282-
app_id: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_ID }}
283-
private_key: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_PEM }}
284-
285-
- name: Aws Dispatch Frontend for dev
286-
if: github.ref == 'refs/heads/dev'
287-
uses: peter-evans/repository-dispatch@v2
288-
with:
289-
token: ${{ steps.app-token.outputs.token }}
290-
repository: hove-io/corefront-aws-assets
291-
event-type: build-trigger
292-
client-payload: '{"branch": "dev", "tag": "dev"}'
293-
294-
- name: Aws Dispatch Frontend for release
295-
if: startsWith(github.ref, 'refs/tags/')
296-
uses: peter-evans/repository-dispatch@v2
297-
with:
298-
token: ${{ steps.app-token.outputs.token }}
299-
repository: hove-io/corefront-aws-assets
300-
event-type: build-trigger
301-
client-payload: '{"branch": "release", "tag": "${{ needs.common_variables.outputs.RELEASE_TAG }}"}'
302-
303-
304-
- name: failure notification
305-
if: failure()
306-
run: |
307-
sudo apt update && sudo apt install -y httpie
308-
echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
309-
310-
311-
run_artemis:
312-
runs-on: [self-hosted, corefront, sandbox]
313-
needs: [publish_aws]
314-
name: Run artemis Dispatch (Dev)
315-
if: github.ref == 'refs/heads/dev'
316-
steps:
317-
318-
- name: Generate github private access token
319-
id: ci-core-app-token
320-
uses: getsentry/[email protected]
321-
with:
322-
app_id: ${{ secrets.CI_CORE_APP_ID }}
323-
private_key: ${{ secrets.CI_CORE_APP_PEM }}
324-
325-
- name: Run artemis on push to dev
326-
uses: peter-evans/repository-dispatch@v2
327-
with:
328-
token: ${{ steps.ci-core-app-token.outputs.token }}
329-
repository: hove-io/artemis
330-
event-type: run_artemis_ng
331-
332-
- name: failure notification
333-
if: failure()
334-
run: |
335-
sudo apt update && sudo apt install -y httpie
336-
echo '{"text":":warning: Github Actions: workflow dockers_builder_dev Job run_artemis is failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
273+
# publish_aws:
274+
# runs-on: [self-hosted, corefront, sandbox]
275+
# name: Aws Dispatch (Dev)
276+
# needs: [debian11_front_images, debian11_back_images, common_variables]
277+
# steps:
278+
279+
# - name: Generate token for aws images
280+
# id: app-token
281+
# uses: getsentry/[email protected]
282+
# with:
283+
# app_id: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_ID }}
284+
# private_key: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_PEM }}
285+
286+
# - name: Aws Dispatch Frontend for dev
287+
# if: github.ref == 'refs/heads/dev'
288+
# uses: peter-evans/repository-dispatch@v2
289+
# with:
290+
# token: ${{ steps.app-token.outputs.token }}
291+
# repository: hove-io/corefront-aws-assets
292+
# event-type: build-trigger
293+
# client-payload: '{"branch": "dev", "tag": "dev"}'
294+
295+
# - name: Aws Dispatch Frontend for release
296+
# if: startsWith(github.ref, 'refs/tags/')
297+
# uses: peter-evans/repository-dispatch@v2
298+
# with:
299+
# token: ${{ steps.app-token.outputs.token }}
300+
# repository: hove-io/corefront-aws-assets
301+
# event-type: build-trigger
302+
# client-payload: '{"branch": "release", "tag": "${{ needs.common_variables.outputs.RELEASE_TAG }}"}'
303+
304+
305+
# - name: failure notification
306+
# if: failure()
307+
# run: |
308+
# sudo apt update && sudo apt install -y httpie
309+
# echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
310+
311+
312+
# run_artemis:
313+
# runs-on: [self-hosted, corefront, sandbox]
314+
# needs: [publish_aws]
315+
# name: Run artemis Dispatch (Dev)
316+
# if: github.ref == 'refs/heads/dev'
317+
# steps:
318+
319+
# - name: Generate github private access token
320+
# id: ci-core-app-token
321+
# uses: getsentry/[email protected]
322+
# with:
323+
# app_id: ${{ secrets.CI_CORE_APP_ID }}
324+
# private_key: ${{ secrets.CI_CORE_APP_PEM }}
325+
326+
# - name: Run artemis on push to dev
327+
# uses: peter-evans/repository-dispatch@v2
328+
# with:
329+
# token: ${{ steps.ci-core-app-token.outputs.token }}
330+
# repository: hove-io/artemis
331+
# event-type: run_artemis_ng
332+
333+
# - name: failure notification
334+
# if: failure()
335+
# run: |
336+
# sudo apt update && sudo apt install -y httpie
337+
# echo '{"text":":warning: Github Actions: workflow dockers_builder_dev Job run_artemis is failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}

0 commit comments

Comments
 (0)