Skip to content

Commit

Permalink
Change CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
x-real-ip committed Dec 30, 2023
1 parent 508d451 commit a7cdc6c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 352 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Continuous integration

on:
push:
pull_request:
workflow_dispatch:

jobs:
yamllint:
name: Yaml lint
uses: theautomation/github-actions/.github/workflows/yamllint.yaml@main

build-and-push-image:
name: Build and Push Image
needs: [home-assistant, yamllint]
uses: theautomation/github-actions/.github/workflows/build-and-push.yaml@main
with:
publish: true

dispatch-update-manifest:
name: Repository Dispatch to Update Manifest
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: theautomation/gitops
event-type: update-manifest
client-payload:
'{"ref": "${{ github.ref }}", "repository": "${{
github.repository}}", "registry": "ghcr.io", "sha": "${{ github.sha
}}"}'
1 change: 0 additions & 1 deletion deploy/container/Containerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production

COPY ./src/data/ /data/

# INSTALL PACKAGES
RUN npm install \
node-red-contrib-calc \
node-red-contrib-cron-plus \
Expand Down
29 changes: 0 additions & 29 deletions cicd/.yamllint.yaml

This file was deleted.

149 changes: 0 additions & 149 deletions cicd/pipeline.yaml

This file was deleted.

173 changes: 0 additions & 173 deletions deploy/k8s/manifest.yaml

This file was deleted.

0 comments on commit a7cdc6c

Please sign in to comment.