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 f0dcdf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
25 changes: 21 additions & 4 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,25 @@ 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
- id: config
name: Load Configuration
run: |
export TORRUST_IDX_BACK_CONFIG=$(cat config-idx-back.local.toml)
export TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml)
- id: compose
name: Compose Applications
run: docker compose build
--build-arg UID="$TORRUST_IDX_BACK_USER_UID"
--build-arg RUN_AS_USER="$TORRUST_IDX_BACK_RUN_AS_USER"

- 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 f0dcdf8

Please sign in to comment.