Skip to content

Commit

Permalink
Merge pull request #1 from SystemsPurge/workflow
Browse files Browse the repository at this point in the history
Create docker-image.yml
  • Loading branch information
SystemsPurge authored Nov 6, 2024
2 parents 1939a3e + a9b3bee commit deb661a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches:
- '**'

jobs:
build_docker:
runs-on: self-hosted
steps:
- run: git clone -b $GITHUB_REF_NAME https://github.com/SystemsPurge/controller.git && cd controller && docker build --tag $CRU/$CRI:$GITHUB_REF_NAME . && cd .. && rm -rf controller

deploy_docker:
runs-on: self-hosted
needs: [build_docker]
steps:
- run: docker login -u $CRU -p $CRP && docker push $CRU/$CRI:$GITHUB_REF_NAME
2 changes: 1 addition & 1 deletion villas/controller/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def main():
return -1
try:
with kombu.Connection(broker_url, connect_timeout=3) as c:
LOGGER.info(f'Connecting to: {broker_url}')
c.connect()
LOGGER.info(f'Connected to: {broker_url}')

args.func(c, args)

Expand Down

0 comments on commit deb661a

Please sign in to comment.