13 Commits

4 changed files with 52 additions and 2 deletions

31
.github/workflows/docker-push.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Docker
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into Docker registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up environment variables
id: env
run: |
echo "IMAGE_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: docker.io/litruv/api-websocket-bridge:${{ env.IMAGE_TAG }}

19
.github/workflows/versionIncrement.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Version Increment
on:
push:
branches:
- main
jobs:
version:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, '[RELEASE]')"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: git config --global user.name 'Litruv'
- run: git config --global user.email 'litruv@gmail.com'
- run: npm version patch -m "[RELEASE] %s"
- run: git push

View File

@@ -1,6 +1,6 @@
{
"name": "api-websocket-bridge",
"version": "1.0.3",
"version": "1.0.5",
"description": "API WebSocket Bridge is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol",
"main": "source/index.js",
"scripts": {