Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
Added gcloud auth
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenewald committed Sep 19, 2023
1 parent a90f046 commit b7fba1e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Configure gcloud
run: |
gcloud config set project ${{ secrets.GCP_PROJECT_ID }}
gcloud auth configure-docker
- name: Authenticate with Google Cloud
run: echo "${{ secrets.GCP_SA_KEY }}" | gcloud auth activate-service-account --key-file=-
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}

- name: Install LLVM 16
run: |
Expand Down Expand Up @@ -79,4 +89,10 @@ jobs:
run: cmake --install build --config Release --prefix prefix

- name: Create Dockerimage
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t stevenewald/nutc-linter:latest . #--push
run: docker build -t nutc-linter:latest .


- name: Push Docker image
run: |
docker tag nutc-linter:latest gcr.io/${{ secrets.GCP_PROJECT_ID }}/nutc-linter:latest
docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/nutc-linter:latest

0 comments on commit b7fba1e

Please sign in to comment.