Skip to content

Commit

Permalink
Just publish image for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Dec 4, 2024
1 parent fff7058 commit 6bce047
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 80 deletions.
File renamed without changes.
70 changes: 0 additions & 70 deletions .github/build_and_publish/cloudbuild.yaml

This file was deleted.

19 changes: 9 additions & 10 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,18 @@ jobs:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

# Build dockerfile in .github/build_and_publish.Dockerfile and publish to ghcr
- name: Build and push deployment image
uses: docker/build-push-action@v2
with:
context: .github
file: .github/build_and_publish.Dockerfile
push: true
tags: ghcr.io/policyengine/policyengine-us-data/build-and-publish:latest

- name: GCP authentication
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_POLICYENGINE_RESEARCH_SA_TOKEN }}"
project_id: policyengine-research

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: Build and push to Cloud Build
run: |
gcloud builds submit \
--config=.github/build_and_publish/cloudbuild.yaml
env:
PROJECT_ID: policyengine-research

0 comments on commit 6bce047

Please sign in to comment.