Skip to content

fix: remove couple of more packages and add workflows #1

fix: remove couple of more packages and add workflows

fix: remove couple of more packages and add workflows #1

name: Verifier deploy/build action
on:
workflow_dispatch:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- 'apps/verifier/**'
- 'Dockerfile'
- .github/workflows/deploy_verifier.yml
push:
branches: [main]
paths:
- 'packages/verifier/**'
- 'Dockerfile'
- .github/workflows/deploy_verifier.yml
jobs:
deploy:
# Deploy when we PUSH to MAIN
if: ${{ (github.ref == 'refs/heads/main') && (github.event_name == 'push') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build blockchain-lab-um/oid4vc-monorepo
run: docker build . -t blockchain-lab-um/oid4vc-monorepo
- name: Build blockchain-lab-um/oid4vc-verifier
run: docker build ./apps/verifier -t blockchain-lab-um/oid4vc-verifier
- name: Change image tag
run: docker tag blockchain-lab-um/oid4vc-verifier:latest bclabum.informatika.uni-mb.si/registry/verifier:latest
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: bclabum.informatika.uni-mb.si/registry
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to private docker registry
run: docker push bclabum.informatika.uni-mb.si/registry/verifier:latest
test-build:
# Test build on every PR to MAIN
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build blockchain-lab-um/oid4vc-monorepo
run: docker build . -t blockchain-lab-um/oid4vc-monorepo
- name: Build blockchain-lab-um/oid4vc-verifier
run: docker build ./apps/verifier -t blockchain-lab-um/oid4vc-verifier