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

anish/remove nats dependency #13

anish/remove nats dependency

anish/remove nats dependency #13

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
PROJECT_ID: develop-for-good
REGION: us-central1
GAR_LOCATION: us-central1-docker.pkg.dev/develop-for-good/dfg
jobs:
build-push-artifact:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.SERVICE_ACCOUNT_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "Use gcloud CLI"
run: "gcloud info"
- name: "Docker auth"
run: |-
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
- name: Set short commit SHA
id: set_commit_sha
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.GAR_LOCATION }}/scipio:latest,${{ env.GAR_LOCATION }}/scipio:${{ env.SHORT_SHA }}
cache-from: type=gha
cache-to: type=gha,mode=max