Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 0 additions & 173 deletions .github/build-v2-wip.yaml

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: "Release"
on:
push:
branches:
- dev
- stage

workflow_dispatch:
inputs:
build_flag:
Expand All @@ -13,9 +18,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Build, Push, Deploy (dev)
environment: "dev"
timeout-minutes: 45
name: Build, Push, Deploy
environment: ${{ github.ref_name }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -31,9 +36,9 @@ jobs:
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
fromTag: "0.1"
toTag: ${{ github.sha }}
mode: "HYBRID"
outputFile: "CHANGELOG.md"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -56,6 +61,9 @@ jobs:
WS_TASKS_DB_PASS: ${{ secrets.WS_TASKS_DB_PASS }}
WS_TASKS_SECRET_KEY: ${{ secrets.WS_TASKS_SECRET_KEY }}

- name: Print CHANGELOG.md
run: cat CHANGELOG.md

- name: Deploy
env:
ENV: ${{ vars.ENV }}
Expand Down Expand Up @@ -88,8 +96,8 @@ jobs:
ssh-add ~/.ssh/github_actions

echo Configuring docker context
docker context create dev --docker "host=ssh://github-actions@${{ vars.AZURE_DOCKER_HOST_IP }}"
docker context use dev
docker context create ${{ vars.ENV }} --docker "host=ssh://github-actions@${{ vars.AZURE_DOCKER_HOST_IP }}"
docker context use ${{ vars.ENV }}

# remove images no longer in use--may need disk space to pull
echo Pruning old docker images
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

```docker-compose -f docker-compose.build.yml --env-file XXX.env build```

```docker-compose --env-file XXX.env push```
```docker-compose -f docker-compose.build.yml push```

Replace XXX.env with the environment definition file of the environment for which you want to build an image. This can be overridden when running (see below).

Expand All @@ -37,3 +37,7 @@ Replace XXX.env with the environment definition file of the environment for whic

* ```example.env```: template of the .env file required by the Docker compose YAML files
* ```tdei_uw.env```: .env for deployment at UW's TDEI center. Only UW should use this, new users should adapt example.env to suit their needs. LTG: remove this file from this repo.

# GH Actions

See GitHub's actions tab in this repo for more deployment examples/steps.
Loading