Skip to content

Commit

Permalink
Add gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Plakida committed Jul 18, 2023
1 parent a1e3fd9 commit afef9b9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
stages:
- test
- build

variables:
CI_IMAGE: "docker.io/paritytech/ci-unified:latest"
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
VAULT_ADDR: "https://vault.parity-mgmt-vault.parity.io"
VAULT_AUTH_PATH: "gitlab-parity-io-jwt"
VAULT_AUTH_ROLE: "gitlab_${CI_PROJECT_NAME}"
HELM_SECRETS_DRIVER: vals

default:
image: $CI_IMAGE
tags:
- linux-docker-vm-c2

test-unit:
stage: test
rules:
- if: $CI_COMMIT_REF_NAME == "oleg/bazel_test"
script:
- echo "Test..."
build:
stage: build
rules:
- if: $CI_COMMIT_REF_NAME == "oleg/bazel_test"
script:
- bazel build //cli --action_env=PATH=$PATH --remote_cache=https://storage.googleapis.com/bazel-cache-parity-build-stg --google_default_credentials

0 comments on commit afef9b9

Please sign in to comment.