Skip to content

Commit

Permalink
Remove release please bot and add auto push to ecr on tags (#42)
Browse files Browse the repository at this point in the history
* Remove release please bot and add auto push to ecr on tags

* Modify tag name

* bump up version

---------

Co-authored-by: Nicolas Frank <[email protected]>
  • Loading branch information
WonderPG and Nicolas Frank authored Oct 30, 2024
1 parent 2451bf7 commit ebe4152
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 32 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Changelog
on:
pull_request

jobs:
Check-Changelog:
name: Check Changelog Action
runs-on: ubuntu-20.04
steps:
- uses: tarides/changelog-check-action@v2
with:
changelog: CHANGELOG.md
11 changes: 6 additions & 5 deletions .github/workflows/ecr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy to ECR

on:
release:
types: [published]
push:
tags:
- '*'

permissions:
id-token: write # This is required for requesting the JWT
Expand All @@ -18,7 +19,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Build FastAPI Image
- name: Build Image
run: |
docker build -t temp:latest -f Dockerfile .
Expand All @@ -35,11 +36,11 @@ jobs:
id: login-ecr-management
uses: aws-actions/amazon-ecr-login@v2

- name: Tag and Push FastAPI Image to Amazon ECR
- name: Tag and Push Image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr-management.outputs.registry }}
ECR_REPOSITORY: ml-repository
IMAGE_TAG: neuroagent-${{ github.event.release.tag_name }}
IMAGE_TAG: neuroagent-${{ github.ref_name }}
run: |
docker tag temp:latest $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
18 changes: 0 additions & 18 deletions .github/workflows/release-please.yml

This file was deleted.

8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.3.3] - 30.10.2024

### Changed
- Removed release please bot and add automatic on tag pushes to ecr.

## [0.3.2](https://github.com/BlueBrain/neuroagent/compare/v0.3.1...v0.3.2) (2024-10-29)


Expand All @@ -28,7 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Added release please to automate changelogs and releases. ([5b9d30b](https://github.com/BlueBrain/neuroagent/commit/5b9d30b1d304a4a16761939625db31ed581bc57b))
* Added stream ([#33](https://github.com/BlueBrain/neuroagent/issues/33)) ([3df8463](https://github.com/BlueBrain/neuroagent/commit/3df84637649fce5937688f288d4d03f9c4eab0b6))

## [Unreleased]

### Added
- Swarm copy POC.
Expand Down
7 changes: 0 additions & 7 deletions release-please-config.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/neuroagent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Neuroagent package."""

__version__ = "0.3.2"
__version__ = "0.3.3"

0 comments on commit ebe4152

Please sign in to comment.