Skip to content

FE-232 fix dev env for manifest dot py #15

FE-232 fix dev env for manifest dot py

FE-232 fix dev env for manifest dot py #15

name: Main Validation and Release Workflow
on:
pull_request_target:
types:
- closed
branches:
- main
jobs:
main-ci:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Needed by sonar to get the git history for the branch the PR will be merged into.
with:
fetch-depth: 0
- name: Fetch tag history
run: git fetch --tags
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- uses: google-github-actions/[email protected]
name: Setup gcloud for pushing Docker images
with:
service_account_email: [email protected]
service_account_key: ${{ secrets.Base64ServiceAccountKey }}
export_default_credentials: true
- name: Setup GCR auth
run: gcloud auth configure-docker --quiet us.gcr.io,us-east4-docker.pkg.dev
- name: Push Scala Dataflow Docker image
run: sbt publish
- name: Get artifact slug
id: get-artifact-slug
run: 'echo ::set-output name=slug::$(git rev-parse --short "$GITHUB_SHA")'
- name: Push Dagster User Code Docker image
uses: docker/build-push-action@v2
with:
context: ./orchestration
push: true
tags: us.gcr.io/broad-dsp-gcr-public/monster-hca-dagster:${{steps.get-artifact-slug.outputs.slug}}, us.gcr.io/broad-dsp-gcr-public/monster-hca-dagster:latest
- name: Push Compose Dev Env Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: us-east4-docker.pkg.dev/broad-dsp-monster-hca-dev/monster-dev-env/hca_ingest_compose_dev_env:${{steps.get-artifact-slug.outputs.slug}}, us-east4-docker.pkg.dev/broad-dsp-monster-hca-dev/monster-dev-env/hca_ingest_compose_dev_env:latest