Skip to content

Commit

Permalink
fix: auto releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhaev26 committed Dec 20, 2024
1 parent d0bb481 commit 74b67dc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and Publish Docker Image
name: Build, Publish Docker Image, and Create Release

on:
push:
branches:
- dev
paths:
- '**/docker-compose.yml'
- '**/docker-compose.dev.yml'

jobs:
build:
Expand All @@ -26,5 +26,18 @@ jobs:

- name: Build and push Docker image using docker-compose
run: |
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml push
docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml push
- name: Create GitHub Release
id: create_release
uses: gh action/create-release@v1
with:
tag_name: "v${{ github.run_number }}"
release_name: "Release v${{ github.run_number }}"
body: |
This release contains the latest Docker images built and pushed for `dev`.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- "3030:3030"
environment:
NODE_ENV: development
DEBUG: true
DEBUG: 'true'
volumes:
- .:/usr/src/app
command: yarn start --port 3030
Expand All @@ -30,7 +30,7 @@ services:
KAFKA_LISTENER_NAME: INSIDE
KAFKA_LISTENER_PORT: 9092
KAFKA_LISTENER_HOSTNAME: kafka
KAFKA_LISTENER_INTERNAL: true
KAFKA_LISTENER_INTERNAL: 'true'
KAFKA_LISTENER_DEFAULT: INSIDE
KAFKA_LISTENER_SECURITY_PROTOCOL: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
Expand Down

0 comments on commit 74b67dc

Please sign in to comment.