multiple creds presentation request #281
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building All Containers | |
on: | |
push: | |
branches: [ 'main' ] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ 'main' ] | |
workflow_dispatch: | |
jobs: | |
build_api: | |
name: Build api | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Meta API Image | |
id: meta_api | |
uses: docker/metadata-action@v3 | |
with: | |
images: ghcr.io/european-epc-competence-center/vc-verifier/vc_verifier_api | |
flavor: | | |
onlatest=true | |
latest=auto | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
labels: | | |
org.opencontainers.image.title=VC Verifier API | |
org.opencontainers.image.description=API container of the verifiable credential verifier service. | |
org.opencontainers.image.vendor=EECC | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./api | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta_api.outputs.tags }} | |
labels: ${{ steps.meta_api.outputs.labels }} | |
build_frontend: | |
name: Build frontend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Meta Frontend Image | |
id: meta_frontend | |
uses: docker/metadata-action@v3 | |
with: | |
images: ghcr.io/european-epc-competence-center/vc-verifier/vc_verifier_frontend | |
flavor: | | |
onlatest=true | |
latest=auto | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
labels: | | |
org.opencontainers.image.title=VC Verifier Frontend | |
org.opencontainers.image.description=Frontend container of the verifiable credential verifier service. | |
org.opencontainers.image.vendor=EECC | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ./frontend | |
build-args: | | |
PUBLIC_PATH=verifier | |
NODE_ENV=production | |
BASE_URL=https://ssi.eecc.de | |
VERIFIER_API=https://ssi.eecc.de/api/verifier | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta_frontend.outputs.tags }} | |
labels: ${{ steps.meta_frontend.outputs.labels }} | |