Skip to content

Commit

Permalink
dev: more work with docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Aug 3, 2023
1 parent 645f9ed commit 7719fe9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
uses: actions/checkout@v3

- id: setup
name: Setup Toolchain
name: Setup Docker Toolchain
uses: docker/setup-buildx-action@v2

- id: build
name: Build
name: Build Image
uses: docker/build-push-action@v4
with:
context: .
Expand All @@ -29,8 +29,23 @@ jobs:
cache-to: type=gha,mode=max

- id: inspect
name: Inspect
name: Inspect Inspect
run: docker image inspect index-backend:local

- name: Build docker-compose images
run: docker compose build
- id: compose
name: Compose Applications
run: |
export TORRUST_IDX_BACK_CONFIG=$(cat config-idx-back.local.toml) \
export TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml)
docker compose build \
--build-arg TORRUST_IDX_BACK_CONFIG="$TORRUST_IDX_BACK_CONFIG" \
--build-arg TORRUST_TRACKER_CONFIG="$TORRUST_TRACKER_CONFIG"
- id: run
name: Run Applications
run: docker compose up --detach

- id: check
name: Check Applications
run: docker ps
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
actix
addrs
alekitto
appuser
AUTOINCREMENT
bencode
bencoded
Expand Down

0 comments on commit 7719fe9

Please sign in to comment.