Skip to content

chore(deps): update all patch dependencies #563

chore(deps): update all patch dependencies

chore(deps): update all patch dependencies #563

Workflow file for this run

name: Docker build
on:
pull_request:
branches:
- main
jobs:
changes:
runs-on: ubuntu-latest
outputs:
images: ${{ steps.filter.outputs.changes }}
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # tag=v2.11.1
id: filter
with:
filters: |
saas_app: 'saas_app/**'
build:
if: needs.changes.outputs.images != '[]'
runs-on: ubuntu-latest
needs: changes
strategy:
fail-fast: false
matrix:
image: ${{ fromJSON(needs.changes.outputs.images) }}
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H:%M:%S')"
- name: Build image
working-directory: ./${{ matrix.image }}
run: |
docker build \
-t ${{ matrix.image }}:latest \
--build-arg GIT_SHA=${{ github.sha }} \
--build-arg BUILD_DATE=${{ steps.date.outputs.date }} .
- name: Dive into image
uses: cds-snc/dive-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ${{ matrix.image }}:latest