Skip to content

Commit 6401c02

Browse files
committed
Merge branch 'development'
2 parents babc20e + 5f9509b commit 6401c02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1794
-889
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ on:
1414
pull_request:
1515

1616
env:
17-
BOT_IMAGE_NAME: playback-enq-bot
18-
REIGSTRATION_IMAGE_NAME: playback-enq-reg
17+
BOT_IMAGE_NAME: bot
1918

2019
jobs:
2120
# Run tests.
@@ -32,8 +31,7 @@ jobs:
3231
docker-compose --file docker-compose.test.yml build
3332
docker-compose --file docker-compose.test.yml run sut
3433
else
35-
docker build ./bot --file ./bot/Dockerfile
36-
docker build ./registration --file ./registration/Dockerfile
34+
docker build .
3735
fi
3836
3937
# Push image to GitHub Packages.
@@ -49,10 +47,7 @@ jobs:
4947
- uses: actions/checkout@v2
5048

5149
- name: Build bot image
52-
run: docker build ./bot --file ./bot/Dockerfile --tag $BOT_IMAGE_NAME
53-
54-
- name: Build register image
55-
run: docker build ./bot --file ./registration/Dockerfile --tag $REIGSTRATION_IMAGE_NAME
50+
run: docker build . --tag $BOT_IMAGE_NAME
5651

5752
- name: Log into registry
5853
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
@@ -79,28 +74,6 @@ jobs:
7974
docker tag $BOT_IMAGE_NAME $IMAGE_ID:$VERSION
8075
docker push $IMAGE_ID:$VERSION
8176
82-
83-
- name: Push registration image
84-
run: |
85-
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$REIGSTRATION_IMAGE_NAME
86-
87-
# Change all uppercase to lowercase
88-
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
89-
90-
# Strip git ref prefix from version
91-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
92-
93-
# Strip "v" prefix from tag name
94-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
95-
96-
# Use Docker `latest` tag convention
97-
[ "$VERSION" == "master" ] && VERSION=latest
98-
99-
echo IMAGE_ID=$IMAGE_ID
100-
echo VERSION=$VERSION
101-
102-
docker tag $REIGSTRATION_IMAGE_NAME $IMAGE_ID:$VERSION
103-
docker push $IMAGE_ID:$VERSION
10477
10578
- name: Delete builder images
10679
run: |
File renamed without changes.

bot/src/controller/commandHandler.ts

Lines changed: 0 additions & 104 deletions
This file was deleted.

bot/src/controller/httpController.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

bot/src/dependencyInjection/inversify.config.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

bot/src/dependencyInjection/types.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

bot/src/index.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

bot/src/model/commands/command.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

docker-compose.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ version: "3.7"
22

33
services:
44
bot:
5-
build: ./bot
5+
build: .
66
env_file:
77
- ./bot-environment.env
88
- ./mariadb-environment.env
9-
10-
registration:
11-
build: ./registration
129
ports:
1310
- "9897:9897"
14-
11+
1512
database:
1613
image: mariadb
1714
restart: always

0 commit comments

Comments
 (0)