Skip to content

Commit

Permalink
Run docker in gha
Browse files Browse the repository at this point in the history
  • Loading branch information
ktennessenInvitae committed Sep 19, 2023
1 parent 4d21c00 commit ff66e74
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/uta_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
type: boolean
default: true

env:
UTA_V=20210129b

jobs:
summarize-inputs:
Expand All @@ -29,27 +31,18 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker
uses: docker/setup-action@v2
with:
docker-version: '20.10.7'
- name: Build Docker Compose Services
uses: docker/compose-action@v2
with:
file: loading/docker-compose.yml
services: uta_python
build: --build
- name: Start Docker Compose Services
uses: docker/compose-action@v2
with:
file: loading/docker-compose.yml
services: uta_python
- name: Execute Commands Inside Container
uses: docker/exec-action@v2
with:
container: some_stuff_python
run: PGPASSWORD=anonymous psql -h postgres -U anonymous -d uta
- name: Change dir
run: cd loading
- name: Build the stack
env:
uta_v: ${{ env.UTA_V }
run: docker-compose up -d
- name: Bring up the stack
env:
uta_v: ${{ env.UTA_V }
run: docker-compose up
- name: Bring down the stack
env:
DOCKER_CLI: bash
timeout-minutes: 5
uta_v: ${{ env.UTA_V }
run: docker-compose down --volumes

0 comments on commit ff66e74

Please sign in to comment.