-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new minideb Dockerfile * docker steps into CI * project_id added to CI * RUST_IMAGE=rust:1.80 * cargo update fix * fix security issue with google creds in docker build step * additional tags for docker images * master or tag check --------- Co-authored-by: Kirill Azovtsev <[email protected]>
- Loading branch information
Showing
7 changed files
with
167 additions
and
184 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 |
---|---|---|
|
@@ -38,8 +38,11 @@ env: | |
~/.hunter | ||
~/.rustup | ||
DOCKER_REGISTRY_PATH: ${{ secrets.GCP_REGISTRY }}/${{ secrets.GCP_PROJECT }}/kagome-dev/ | ||
PROJECT_ID: ${{ secrets.GCP_PROJECT }} | ||
CACHE_PATH: ./build/cache | ||
DEFAULT_BUILD_TYPE: Release | ||
GIT_REF_NAME: ${{ github.ref_name }} | ||
IS_MAIN_OR_TAG: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) }} | ||
CI: true | ||
|
||
|
||
|
@@ -231,6 +234,8 @@ jobs: | |
build_type: "Debug" | ||
- name: "Self-hosted: Minideb: Build Release" | ||
build_type: "Release" | ||
- name: "Self-hosted: Minideb: Build RelWithDebInfo" | ||
build_type: "RelWithDebInfo" | ||
name: "${{ matrix.options.name }}" | ||
|
||
steps: | ||
|
@@ -296,6 +301,27 @@ jobs: | |
make upload_apt_package \ | ||
BUILD_TYPE=${{ matrix.options.build_type }} | ||
- name: Set up Docker Buildx | ||
if: env.package_exist == 'False' | ||
uses: docker/[email protected] | ||
|
||
- name: "Build Docker Image" | ||
if: env.package_exist == 'False' | ||
working-directory: ./housekeeping/docker/kagome-dev | ||
run: make kagome_image_build \ | ||
KAGOME_PACKAGE_VERSION=${{ env.package_version }} \ | ||
DOCKER_REGISTRY_PATH=${DOCKER_REGISTRY_PATH} \ | ||
BUILD_TYPE=${{ matrix.options.build_type }} | ||
|
||
- name: "Push Docker Image" | ||
if: env.package_exist == 'False' | ||
working-directory: ./housekeeping/docker/kagome-dev | ||
run: make kagome_image_push \ | ||
DOCKER_REGISTRY_PATH=${DOCKER_REGISTRY_PATH} \ | ||
BUILD_TYPE=${{ matrix.options.build_type }} \ | ||
GIT_REF_NAME=${{ env.GIT_REF_NAME }} \ | ||
IS_MAIN_OR_TAG=${{ env.IS_MAIN_OR_TAG }} | ||
|
||
- name: "Cleaning cache" | ||
if: env.package_exist == 'False' | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -29,6 +29,7 @@ on: | |
|
||
env: | ||
DOCKER_REGISTRY_PATH: ${{ secrets.GCP_REGISTRY }}/${{ secrets.GCP_PROJECT }}/kagome-dev/ | ||
PROJECT_ID: ${{ secrets.GCP_PROJECT }} | ||
BUILD_DIR: build | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
CI: true | ||
|
@@ -105,6 +106,25 @@ jobs: | |
make upload_apt_package \ | ||
BUILD_TYPE=${{ github.event.inputs.build_type }} | ||
- name: Set up Docker Buildx | ||
if: env.package_exist == 'False' | ||
uses: docker/[email protected] | ||
|
||
- name: "Build Docker Image" | ||
if: env.package_exist == 'False' | ||
working-directory: ./housekeeping/docker/kagome-dev | ||
run: make kagome_image_build \ | ||
KAGOME_PACKAGE_VERSION=${{ env.package_version }} \ | ||
DOCKER_REGISTRY_PATH=${DOCKER_REGISTRY_PATH} \ | ||
BUILD_TYPE=${{ github.event.inputs.build_type }} | ||
|
||
- name: "Push Docker Image" | ||
if: env.package_exist == 'False' | ||
working-directory: ./housekeeping/docker/kagome-dev | ||
run: make kagome_image_push \ | ||
DOCKER_REGISTRY_PATH=${DOCKER_REGISTRY_PATH} \ | ||
BUILD_TYPE=${{ github.event.inputs.build_type }} | ||
|
||
- name: "Always Save Cache" | ||
id: cache-save | ||
if: always() && (steps.cache-restore.outputs.cache-hit != 'true' || env.package_exist != 'True') | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.