Skip to content

Commit

Permalink
Update dependencies and template files (#6)
Browse files Browse the repository at this point in the history
* Update dependencies and template files

* Bump version

* Update the readme

---------

Co-authored-by: TheByronHimes <[email protected]>
  • Loading branch information
TheByronHimes and TheByronHimes authored Jun 19, 2023
1 parent a7f1856 commit fab13b0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/dev_install
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python -m pip install --upgrade pip
pip install -e .[all]

# install or upgrade dependencies for development and testing
pip install --upgrade -r requirements-dev.txt
pip install -r requirements-dev.txt

# install pre-commit hooks to git
pre-commit install
10 changes: 5 additions & 5 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@ jobs:
- uses: actions/checkout@v3
name: Check out code

- uses: docker/setup-qemu-action@v2.0.0
- uses: docker/setup-qemu-action@v2
name: Set up QEMU

- uses: docker/setup-buildx-action@v2.5.0
- uses: docker/setup-buildx-action@v2
name: Set up Docker Buildx

- uses: docker/login-action@v2.1.0
- uses: docker/login-action@v2
name: Login to DockerHub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: docker/build-push-action@v4.0.0
- uses: docker/build-push-action@v4
name: Build and push
id: docker_build
with:
push: true
# platforms: linux/amd64,linux/arm64/v8
platforms: linux/amd64,linux/arm64
tags: "ghga/${{ github.event.repository.name }}:${{ needs.verify_version.outputs.version }}"

- name: Run Trivy vulnerability scanner
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ We recommend using the provided Docker container.

A pre-build version is available at [docker hub](https://hub.docker.com/repository/docker/ghga/notification-service):
```bash
docker pull ghga/notification-service:0.1.0
docker pull ghga/notification-service:0.1.1
```

Or you can build the container yourself from the [`./Dockerfile`](./Dockerfile):
```bash
# Execute in the repo's root dir:
docker build -t ghga/notification-service:0.1.0 .
docker build -t ghga/notification-service:0.1.1 .
```

For production-ready deployment, we recommend using Kubernetes, however,
for simple use cases, you could execute the service using docker
on a single server:
```bash
# The entrypoint is preconfigured:
docker run -p 8080:8080 ghga/notification-service:0.1.0 --help
docker run -p 8080:8080 ghga/notification-service:0.1.1 --help
```

If you prefer not to use containers, you may install the service from source:
Expand Down
2 changes: 1 addition & 1 deletion ns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

"""The Notification Service (NS) handles notification kafka events. """

__version__ = "0.1.0"
__version__ = "0.1.1"
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ include_package_data = True
packages = find:
install_requires =
typer==0.7.0
ghga-service-commons==0.2.1
ghga-event-schemas==0.10.1
hexkit[akafka]==0.9.2
ghga-event-schemas==0.13.1
hexkit[akafka]==0.10.0

python_requires = >= 3.9

Expand Down

0 comments on commit fab13b0

Please sign in to comment.