Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
chore: add digitaltwin build job (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen authored Apr 22, 2024
1 parent 5564ff9 commit 86872e0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/digitaltwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker

on:
push:
branches:
- DigitalTwin
workflow_dispatch: {}

jobs:
push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push DigitalTwin Docker image
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
push: true
tags: ghcr.io/leaphy-robotics/leaphy-webbased/leaphy-webbased:digitaltwin

- name: Redeploy DigitalTwin
run: |
curl https://admin.leaphyeasybloqs.com/hooks/update-docker-image?stack=leaphy-webbased-digitaltwin -H "X-Token: ${{ secrets.WEBHOOK_TOKEN }}"

0 comments on commit 86872e0

Please sign in to comment.