Skip to content

remove path for checkout #54

remove path for checkout

remove path for checkout #54

Workflow file for this run

name: Docker Build
on:
push:
# branches:
# - main
# pull_request:
workflow_call:
inputs:
branch:
description: "Branch name for build"
required: true
type: string
permissions:
id-token: write
contents: read
jobs:
docker_build:
runs-on: self-hosted
steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
# path: dpc-app
ref: ${{ github.ref_name }}
- name: Check docker version
run: docker --version
- name: Check make version
run: make --version
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-region: ${{ vars.AWS_REGION }}
# role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT_ID }}:role/delegatedadmin/developer/dpc-dev-github-actions
#
# - name: Login to Amazon ECR
# uses: aws-actions/amazon-ecr-login@v2
- name: "Set up JDK 11"
uses: actions/setup-java@v1
with:
java-version: "11"
- name: Build app
run: make ci-app
- name: Build portal # this is run in parallel with the app build on jenkins, might break out to separate job
run: make ci-portals-v1
- name: Save artifacts
run: "echo 'Saving artifacts'"
# use ECR to save the artifacts
# TODO convert over to GHA
# - name: ECR Login
# run: "log into ECR here and then push up images"
# docker.withRegistry("https://$docker_ecr") {
# for (component in ['web', 'web-admin', 'web-portal']) {
# docker.image("${docker_ecr}/dpc-${component}:latest").push()
# docker.image("${docker_ecr}/dpc-${component}:$version_tag").push()
# }
# }