Skip to content

Commit

Permalink
Setup Docker CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemoldrup committed Feb 13, 2024
1 parent df24327 commit 481a374
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Docker Containers

on:
push:
branches: main

pull_request:
branches: main

workflow_dispatch: # allows manual trigger

jobs:
build:
name: Building Docker Containers
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
strategy:
matrix:
image:
- {dir: euroe-demo, dockerfile: scripts/Dockerfile}
- {dir: gallery, dockerfile: Dockerfile}
- {dir: signMessage, dockerfile: Dockerfile}
- {dir: simpleAgeVerification, dockerfile: Dockerfile}
- {dir: sponsoredTransactions, dockerfile: Dockerfile}
- {dir: sponsoredTransactionsAuction, dockerfile: Dockerfile}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build image
run:
docker build -t ${{ matrix.image.dir }} -f ${{ matrix.image.dockerfile }} ${{ matrix.image.dir }}

0 comments on commit 481a374

Please sign in to comment.