Skip to content

Merge branch 'master' of https://github.com/tschissler/SmartHome.NF #21

Merge branch 'master' of https://github.com/tschissler/SmartHome.NF

Merge branch 'master' of https://github.com/tschissler/SmartHome.NF #21

Workflow file for this run

name: TestService Docker Image CD
on:
push:
branches: [ "master" ]
paths:
- .github/workflows/docker-image.yml
- Smarthome.Web/**
- Smarthome.Controls/**
jobs:
build:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v3
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: calver
increment: patch
- name: Build and publish Docker image
run: |
# Build the Docker image with the package version tag.
docker build -t tschissler/testservice:${{ github.run_id }} -t tschissler/testservice:latest -f ./TestService/Dockerfile --push .
- name: Update Kubernetes deployment
run: |
microk8s kubectl set image deployments/testservice testservice=tschissler/testservice:${{ github.run_id }}