Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
datanel committed Oct 21, 2024
1 parent 37bd6e7 commit 20f1f09
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 72 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/docker_builder_kraken_debian11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build Navitia Dockers with Debian 11

on:
push:
branches:
- dev
tags:
- '*'
jobs:
common_variables:
name: Common variables
runs-on: [self-hosted, kraken, sandbox]
outputs:
RELEASE_TAG: ${{ steps.choose_navitia_tag.outputs.navitia_tag }}
steps:
- name: force chown to avoid errors
run: sudo chown -R $USER:$USER .

# - name: Generate github private access token
# id: ci-core-app-token
# uses: getsentry/[email protected]
# with:
# app_id: ${{ secrets.CI_CORE_APP_ID }}
# private_key: ${{ secrets.CI_CORE_APP_PEM }}

# - name: Checkout navitia
# id: checkout_navitia
# uses: actions/checkout@v3
# with:
# token: ${{ steps.ci-core-app-token.outputs.token }}
# # we need entire history for tags
# fetch-depth: 0

# - name: Choose navitia tag
# id: choose_navitia_tag
# run: |
# version=$(git describe --tags)
# echo "navitia_tag=$version" >> $GITHUB_OUTPUT

# debian11_kraken_image:
# runs-on: [self-hosted, kraken, sandbox]
# name: Build debian11 kraken image
# needs: common_variables
# steps:
# - name: force chown to avoid errors
# run: sudo chown -R $USER:$USER .

# - name: Git config
# run: git config --global --add safe.directory /__w/navitia/navitia

# - name: Generate github private access token
# id: ci-core-app-token
# uses: getsentry/[email protected]
# with:
# app_id: ${{ secrets.CI_CORE_APP_ID }}
# private_key: ${{ secrets.CI_CORE_APP_PEM }}

# - name: Checkout
# uses: actions/checkout@v3
# with:
# submodules: recursive
# token: ${{ steps.ci-core-app-token.outputs.token }}

# - name: Login to Amazon ECR
# uses: aws-actions/amazon-ecr-login@v1
# env:
# AWS_REGION: eu-west-1
# with:
# registries: "162230498103"

# - name: Create builder docker
# run: |
# docker build -f docker/debian11/Dockerfile-builder-kraken -t navitia/builder .

# - name: Build Kraken
# run: docker run -v `pwd`:/navitia/navitia/ navitia/builder

# - name: Create Kraken image
# run: |
# docker build -t navitia/kraken -f docker/debian11/Dockerfile-kraken .
Loading

0 comments on commit 20f1f09

Please sign in to comment.