mirror of
https://github.com/litruv/API-WebSocket-Bridge.git
synced 2026-07-27 04:06:04 +10:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ac6f0b4557 | |||
| ad5f9418f5 | |||
| bd629bf9fe | |||
| f40610ec02 | |||
| 9612d9b7c8 | |||
| d8787bd303 | |||
| 0fe3e6f134 | |||
| daf040439c | |||
| e5054f7c95 | |||
| 15e8523f3d | |||
| ac68b12a00 | |||
| 4448ca0615 | |||
| e15a4952ae |
31
.github/workflows/docker-push.yml
vendored
Normal file
31
.github/workflows/docker-push.yml
vendored
Normal 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
19
.github/workflows/versionIncrement.yml
vendored
Normal 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
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user