Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Merge pull request #10 from onify/task/ldap-search #68

Merge pull request #10 from onify/task/ldap-search

Merge pull request #10 from onify/task/ldap-search #68

Workflow file for this run

name: Build latest
on:
push:
branches: [ main ]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci
- run: npm test
build-latest:
name: Build latest
runs-on: ubuntu-latest
env:
PROJECT_ID: ${{ secrets.GCP_BUILD_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v2
- run: |
sudo apt-get install python2.7
export CLOUDSDK_PYTHON="/usr/bin/python2"
- uses: google-github-actions/setup-gcloud@v0
with:
version: '286.0.0'
project_id: ${{ secrets.GCP_BUILD_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_EMAIL }}
service_account_key: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }}
- name: Build
run: |-
gcloud builds submit \
--quiet \
--tag "eu.gcr.io/$PROJECT_ID/hub/functions:latest"