Skip to content

Commit 192428d

Browse files
authored
EIT-3315 | Add support for URL input & encryption (#3)
* Add support for URL input * Add support for encryption * Restore config.yaml * fix retrieve file post webhook * Refactor services & repositories - Implemented local storage - Removed specific services * Cleanup config * GH Action: Create release on tag push --------- Co-authored-by: marcbaque <[email protected]>
1 parent 1658adc commit 192428d

Some content is hidden

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

56 files changed

+1587
-1555
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@ on:
99
- 'master'
1010

1111
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Build and push
18+
uses: docker/build-push-action@v4
19+
with:
20+
context: .
21+
push: false
1222
test:
1323
runs-on: ubuntu-latest
1424
name: Test
15-
env:
16-
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
25+
needs: [build]
1726
steps:
18-
1927
- name: Checkout
2028
uses: actions/checkout@v3
2129
- name: Set up go
2230
uses: actions/setup-go@v3
2331
with:
2432
go-version: 1.18
25-
2633
- name: Setup
2734
run: |
2835
go install github.com/golang/mock/[email protected]

.github/workflows/deploy_docker.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,10 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
pull_request:
8-
branches:
9-
- 'master'
107

118
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
name: Test
15-
env:
16-
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
17-
steps:
18-
19-
- name: Checkout
20-
uses: actions/checkout@v3
21-
- name: Set up go
22-
uses: actions/setup-go@v3
23-
with:
24-
go-version: 1.18
25-
26-
- name: Setup
27-
run: |
28-
go install github.com/golang/mock/[email protected]
29-
go install entgo.io/ent/cmd/ent@latest
30-
make cache
31-
make mocks
32-
- name: Run tests
33-
run: make test
34-
359
push:
3610
runs-on: ubuntu-latest
37-
needs: [test]
3811
steps:
3912
- name: Checkout
4013
uses: actions/checkout@v3
@@ -58,7 +31,7 @@ jobs:
5831
uses: docker/build-push-action@v4
5932
with:
6033
context: .
61-
push: ${{ github.event_name != 'pull_request' }}
34+
push: true
6235
tags: ${{ steps.meta.outputs.tags }}
6336
labels: ${{ steps.meta.outputs.labels }}
6437
- name: Update repo description
@@ -67,3 +40,14 @@ jobs:
6740
username: ${{ secrets.DOCKERHUB_USERNAME }}
6841
password: ${{ secrets.DOCKERHUB_PASSWORD }}
6942
repository: bloock/managed-api
43+
44+
create_release:
45+
name: Create Release
46+
runs-on: ubuntu-latest
47+
needs: [push]
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Create Release
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
generate_release_notes: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ config.yaml
1818
vendor
1919
# Go workspace file
2020
go.work
21+
22+
# Storage directories
23+
tmp
24+
data

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
mocks:
22
mockgen -source=internal/service/application_service.go -destination=internal/service/mock/mock_application_service.go
3-
mockgen -source=internal/domain/repository/local_storage_repository.go -destination=internal/domain/repository/mocks/mock_local_storage_repository.go
4-
mockgen -source=internal/domain/repository/availability_repository.go -destination=internal/domain/repository/mocks/mock_availability_repository.go
5-
mockgen -source=internal/domain/repository/authenticity_repository.go -destination=internal/domain/repository/mocks/mock_authenticity_repository.go
6-
mockgen -source=internal/domain/repository/certification_repository.go -destination=internal/domain/repository/mocks/mock_certification_repository.go
73
mockgen -source=internal/domain/repository/integrity_repository.go -destination=internal/domain/repository/mocks/mock_integrity_repository.go
4+
mockgen -source=internal/domain/repository/authenticity_repository.go -destination=internal/domain/repository/mocks/mock_authenticity_repository.go
5+
mockgen -source=internal/domain/repository/availability_repository.go -destination=internal/domain/repository/mocks/mock_availability_repository.go
6+
mockgen -source=internal/domain/repository/encryption_repository.go -destination=internal/domain/repository/mocks/mock_encryption_repository.go
87
mockgen -source=internal/domain/repository/notification_repository.go -destination=internal/domain/repository/mocks/mock_notification_repository.go
8+
mockgen -source=internal/domain/repository/metadata_repository.go -destination=internal/domain/repository/mocks/mock_metadata_repository.go
99
mockgen -source=internal/platform/repository/sql/connection/sql_connector.go -destination=internal/platform/repository/sql/connection/mocks/mock_sql_connector.go
1010

1111
schemas:

0 commit comments

Comments
 (0)