Changes applyed to 2UCGBV3J

This commit is contained in:
Manuel López Ruiz 2021-12-20 13:31:10 +01:00
parent f1260f16c6
commit 3757c12465
2 changed files with 9 additions and 2 deletions

View File

@ -23,11 +23,13 @@ jobs:
submodules: true submodules: true
token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }} token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }}
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.ARTIFACTS_GCLOUD_ACCOUNT_BASE64 }}
- name: Setup gcloud authentication - name: Setup gcloud authentication
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/setup-gcloud@master
with: with:
version: ${{env.GCLOUD_VERSION}} version: ${{env.GCLOUD_VERSION}}
service_account_key: ${{ secrets.ARTIFACTS_GCLOUD_ACCOUNT_BASE64 }}
- name: Configure docker and pull images - name: Configure docker and pull images
run: | run: |
@ -93,6 +95,9 @@ jobs:
path: 'docker-dev-env' path: 'docker-dev-env'
token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }} token: ${{ secrets.CARTOFANTE_PERSONAL_TOKEN }}
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.ARTIFACTS_GCLOUD_ACCOUNT_BASE64 }}
- name: Set up gcloud I - name: Set up gcloud I
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/setup-gcloud@master
with: with:

View File

@ -30,11 +30,13 @@ jobs:
docker build -f private/Dockerfile --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" --label=org.opencontainers.image.revision=${GITHUB_SHA} -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} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/}--${GITHUB_SHA::7} . docker build -f private/Dockerfile --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" --label=org.opencontainers.image.revision=${GITHUB_SHA} -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} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api:${GITHUB_REF##*/}--${GITHUB_SHA::7} .
docker build -f private/Dockerfile.onprem --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" --label=org.opencontainers.image.revision=${GITHUB_SHA} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:latest -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_SHA::7} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_REF##*/}--${GITHUB_SHA::7} . docker build -f private/Dockerfile.onprem --label="org.opencontainers.image.created=$(date --rfc-3339=seconds)" --label=org.opencontainers.image.revision=${GITHUB_SHA} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:latest -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_REF##*/} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_SHA::7} -t gcr.io/$ARTIFACTS_PROJECT_ID/sql-api-onprem:${GITHUB_REF##*/}--${GITHUB_SHA::7} .
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.ARTIFACTS_GCLOUD_ACCOUNT_BASE64 }}
- name: Setup gcloud authentication - name: Setup gcloud authentication
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/setup-gcloud@master
with: with:
version: ${{env.GCLOUD_VERSION}} version: ${{env.GCLOUD_VERSION}}
service_account_key: ${{ secrets.ARTIFACTS_GCLOUD_ACCOUNT_BASE64 }}
- name: Configure docker - name: Configure docker
run: gcloud auth configure-docker run: gcloud auth configure-docker