Skip to content

Commit

Permalink
ci: add demo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis-ivaskevicius committed Dec 19, 2024
1 parent 0d9b52e commit 0f21e7e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Docker image
on:
push:
branches:
- main
- docker-stuff

jobs:
push_to_registry:
Expand All @@ -18,8 +18,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Log in to GHCR
Expand Down Expand Up @@ -55,6 +54,8 @@ jobs:
uses: docker/[email protected]
with:
images: ghcr.io/blockfrost/firefly-cardanoconnect
tags:
- latest
- name: Build and push Docker image for firefly-cardanoconnect
id: firefly-cardanoconnect-push
uses: docker/[email protected]
Expand All @@ -73,6 +74,8 @@ jobs:
uses: docker/[email protected]
with:
images: ghcr.io/blockfrost/firefly-cardanosigner
tags:
- latest
- name: Build and push Docker image for firefly-cardanosigner
id: firefly-cardanosigner-push
uses: docker/[email protected]
Expand All @@ -86,3 +89,17 @@ jobs:
push: true
tags: ${{ steps.firefly-cardanosigner-meta.outputs.tags }}
labels: ${{ steps.firefly-cardanosigner-meta.outputs.labels }}

demo:
name: Run Demo
runs-on: ubuntu-latest
needs: push_to_registry
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Start docker-compose
run: docker compose -f ./infra/docker-compose.yaml -p preview up -d --no-build
- name: Add just
uses: extractions/setup-just@v2
- name: Run demo
run: just demo
2 changes: 2 additions & 0 deletions infra/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services:
firefly-cardanoconnect:
image: ghcr.io/blockfrost/firefly-cardanoconnect:docker-stuff
build:
context: ..
target: firefly-cardanoconnect
Expand All @@ -19,6 +20,7 @@ services:
- ./connect.yaml:/app/config.yaml

firefly-cardanosigner:
image: ghcr.io/blockfrost/firefly-cardanosigner:docker-stuff
build:
context: ..
target: firefly-cardanosigner
Expand Down

0 comments on commit 0f21e7e

Please sign in to comment.