-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from GateNLP/dev
Release v2.0.0
- Loading branch information
Showing
143 changed files
with
43,343 additions
and
28,506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: create-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract changelog | ||
run: | | ||
cat CHANGELOG.md | perl -e ' | ||
BEGIN { | ||
$myversion = $ARGV[0]; | ||
$myversion =~ s/^v//; | ||
} | ||
while(<STDIN>) { | ||
if(/^## *\[\Q$myversion\E\]/) { | ||
$flag = 1; | ||
} elsif(/^## *\[[0-9.]*\]/) { | ||
$flag = 0; | ||
} elsif($flag) { | ||
print; | ||
} | ||
}' -- {{ github.ref_name }} > release-changelog.md | ||
# Fail if the changelog is empty, i.e. there is no changelog for this release | ||
[ -s release-changelog.md ] | ||
- name: Create release artifacts | ||
run: | | ||
IMAGE_TAG="{{ github.ref_name }}" | ||
sed "s/DEFAULT_IMAGE_TAG=latest/DEFAULT_IMAGE_TAG=${IMAGE_TAG#v}/" install/get-teamware.sh > ./get-teamware.sh | ||
tar cvzf install.tar.gz README.md docker-compose*.yml generate-docker-env.sh create-django-db.sh nginx custom-policies Caddyfile | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: release-changelog.md | ||
files: | | ||
get-teamware.sh | ||
install.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,18 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Buildx cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ hashFiles('buildx-cache/**') }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Generate env | ||
shell: bash | ||
|
@@ -31,20 +42,19 @@ jobs: | |
# Display the environment variable file for the logs | ||
cat .env | ||
- name: Set up Docker cache | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
with: | ||
key: integration-test-docker-cache-{hash} | ||
restore-keys: | | ||
integration-test-docker-cache- | ||
- uses: docker-practice/actions-setup-docker@master | ||
- run: | | ||
- name: Build images | ||
run: | | ||
BUILDX_ARGS_BACKEND="--cache-from type=local,src=buildx-cache --cache-to type=local,dest=buildx-cache-out,mode=max" | ||
export BUILDX_ARGS_BACKEND | ||
BUILDX_ARGS_FRONTEND="--cache-from type=local,src=buildx-cache-out" | ||
export BUILDX_ARGS_FRONTEND | ||
./build-images.sh | ||
- uses: actions/setup-node@v1 | ||
rm -rf buildx-cache && mv buildx-cache-out buildx-cache | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,18 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker cache | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Buildx cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: unit-test-docker-cache-{hash} | ||
path: buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ hashFiles('buildx-cache/**') }} | ||
restore-keys: | | ||
unit-test-docker-cache- | ||
${{ runner.os }}-buildx- | ||
- name: Run the backend and frontend tests in containers | ||
run: | | ||
|
@@ -38,7 +41,10 @@ jobs: | |
cat .env | ||
# Build the test image with npm and pytest installed | ||
docker build -t teamware-main:latest --target test . | ||
docker buildx build --cache-from type=local,src=buildx-cache --cache-to type=local,dest=buildx-cache-out,mode=max --load -t teamware-main:latest --target test . | ||
# Clear up the cache | ||
rm -rf buildx-cache && mv buildx-cache-out buildx-cache | ||
# Export the environment variables | ||
source .env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out a copy of the repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# This is a configuration file for https://caddyserver.com to implement | ||
# a very simple HTTPS reverse proxy in the docker-compose stack. | ||
# | ||
{$DJANGO_ALLOWED_HOSTS} | ||
|
||
handle /static/* { | ||
reverse_proxy nginx:80 | ||
} | ||
handle * { | ||
reverse_proxy backend:8000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.