-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Build Navitia Dockers | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- dev | ||
|
@@ -414,46 +415,46 @@ jobs: | |
rm -rf ./.??* | ||
publish_aws: | ||
runs-on: [self-hosted, corefront, sandbox] | ||
name: Aws Dispatch (Dev) | ||
needs: [debian8_front_images, debian8_back_images, debian11_images, common_variables] | ||
steps: | ||
- name: Generate token for aws images | ||
id: app-token | ||
uses: getsentry/[email protected] | ||
with: | ||
app_id: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_ID }} | ||
private_key: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_PEM }} | ||
|
||
- name: Aws Dispatch Frontend for dev | ||
if: github.ref == 'refs/heads/dev' | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
repository: hove-io/corefront-aws-assets | ||
event-type: build-trigger | ||
client-payload: '{"branch": "dev", "tag": "dev"}' | ||
|
||
- name: Aws Dispatch Frontend for release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
repository: hove-io/corefront-aws-assets | ||
event-type: build-trigger | ||
client-payload: '{"branch": "release", "tag": "${{ needs.common_variables.outputs.RELEASE_TAG }}"}' | ||
|
||
- name: failure notification | ||
if: failure() | ||
run: | | ||
sudo apt update && sudo apt install -y httpie | ||
echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}} | ||
# publish_aws: | ||
# runs-on: [self-hosted, corefront, sandbox] | ||
# name: Aws Dispatch (Dev) | ||
# needs: [debian8_front_images, debian8_back_images, debian11_images, common_variables] | ||
# steps: | ||
# - name: Generate token for aws images | ||
# id: app-token | ||
# uses: getsentry/[email protected] | ||
# with: | ||
# app_id: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_ID }} | ||
# private_key: ${{ secrets.GA_OS_WORKFLOW_TRIGGER_APP_PEM }} | ||
|
||
# - name: Aws Dispatch Frontend for dev | ||
# if: github.ref == 'refs/heads/dev' | ||
# uses: peter-evans/repository-dispatch@v2 | ||
# with: | ||
# token: ${{ steps.app-token.outputs.token }} | ||
# repository: hove-io/corefront-aws-assets | ||
# event-type: build-trigger | ||
# client-payload: '{"branch": "dev", "tag": "dev"}' | ||
|
||
# - name: Aws Dispatch Frontend for release | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# uses: peter-evans/repository-dispatch@v2 | ||
# with: | ||
# token: ${{ steps.app-token.outputs.token }} | ||
# repository: hove-io/corefront-aws-assets | ||
# event-type: build-trigger | ||
# client-payload: '{"branch": "release", "tag": "${{ needs.common_variables.outputs.RELEASE_TAG }}"}' | ||
|
||
# - name: failure notification | ||
# if: failure() | ||
# run: | | ||
# sudo apt update && sudo apt install -y httpie | ||
# echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}} | ||
|
||
|
||
run_artemis: | ||
runs-on: [self-hosted, corefront, sandbox] | ||
needs: [publish_aws] | ||
needs: [debian11_back_images, debian11_front_images] | ||
name: Run artemis Dispatch (Dev) | ||
if: github.ref == 'refs/heads/dev' | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters