add submodule and run test build in Actions

This commit is contained in:
Álvaro Manera 2020-12-17 11:16:35 +01:00
parent 07119ce90a
commit c3bae9bc68
4 changed files with 15 additions and 4 deletions

View File

@ -12,12 +12,15 @@ env:
NODE_VERSION: '12.18.3'
jobs:
build-node:
build-and-test:
runs-on: ubuntu-18.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }}
- name: Setup gcloud authentication
uses: google-github-actions/setup-gcloud@master
@ -61,7 +64,7 @@ jobs:
run: |
echo ${GITHUB_SHA::7}
echo ${GITHUB_REF##*/}
docker build -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_SHA::7} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/}--${GITHUB_SHA::7} .
docker build -f private/Dockerfile -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_SHA::7} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/}--${GITHUB_SHA::7} .
- name: Upload image
run: |

View File

@ -13,18 +13,21 @@ env:
ARTIFACTS_PROJECT_ID: cartodb-on-gcp-main-artifacts
jobs:
build-node:
build-master:
runs-on: ubuntu-18.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }}
- name: Build image
run: |
echo ${GITHUB_SHA::7}
echo ${GITHUB_REF##*/}
docker build -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:latest -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_SHA::7} .
docker build -f private/Dockerfile -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:latest -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_SHA::7} .
- name: Setup gcloud authentication
uses: google-github-actions/setup-gcloud@master

4
.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "private"]
path = private
url = git@github.com:CartoDB/CartoDB-SQL-API-private.git
branch = master

1
private Submodule

@ -0,0 +1 @@
Subproject commit 2e20a0f0206fe7121162ef2db2ea292d971aabf0