Skip to content

Docker Container Work #10

Docker Container Work

Docker Container Work #10

Workflow file for this run

name: Container
on:
push:
pull_request:
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v3
- id: setup
name: Setup Docker Toolchain
uses: docker/setup-buildx-action@v2
- id: build
name: Build Image
uses: docker/build-push-action@v4
with:
context: .
load: true
push: false
tags: index-backend:local
cache-from: type=gha
cache-to: type=gha,mode=max
- id: inspect
name: Inspect Inspect
run: docker image inspect index-backend:local
- 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)
echo $TORRUST_IDX_BACK_CONFIG
echo $TORRUST_TRACKER_CONFIG
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