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

Add KCC prototype to PFI Exemplar (#39) #18

Add KCC prototype to PFI Exemplar (#39)

Add KCC prototype to PFI Exemplar (#39) #18

name: PFI Exemplar Container Image Build
on:
push:
branches:
- main
paths:
- 'javascript/tbdex-pfi-exemplar/*'
- .github/workflows/pfi-exemplar-container-image.yaml
pull_request:
branches:
- main
paths:
- 'javascript/tbdex-pfi-exemplar/*'
- .github/workflows/pfi-exemplar-container-image.yaml
jobs:
build-image:
name: javascript/tbdex-pfi-exemplar
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ghcr.io/tbd54566975/tbd-examples-tbdex-pfi-exemplar
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Build and push container image
uses: docker/build-push-action@94f8f8c2eec4bc3f1d78c1755580779804cb87b2 # v6.0.1
with:
context: javascript/tbdex-pfi-exemplar
push: true
target: ${{ matrix.target }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}