Skip to content

Update smarthome.web.deploy.yml #3

Update smarthome.web.deploy.yml

Update smarthome.web.deploy.yml #3

name: Smarthome.Web Docker Image CD
on:
push:
branches: [ "master" ]
paths:
- .github/workflows/smarthome.web.deploy.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/smarthome.web:${{ github.run_id }} -t tschissler/smarthome.web:latest -f ./Smarthome.Web/Dockerfile --push .
- name: Update Kubernetes deployment
run: |
microk8s kubectl set image deployments/smarthome-web smarthome-web=tschissler/smarthome-web:${{ github.run_id }}