not building
This commit is contained in:
1 parent
da0d153b81
commit
f8efd895a9
1 file changed
+28
-30
@@ -1,18 +1,17 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
env:
|
env:
|
||||||
MONITORED_FILES: "apparmor.txt build.yaml config.yaml Dockerfile data rootfs"
|
MONITORED_FILES: "apparmor.txt build.yaml config.yaml Dockerfile data rootfs"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branch: [main]
|
branch: [main]
|
||||||
paths:
|
paths:
|
||||||
- 'config.yaml'
|
- "config.yaml"
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Metadata
|
name: Metadata
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.version.outputs.VERSION }}
|
version: ${{ steps.version.outputs.VERSION }}
|
||||||
changlelog: ${{ steps.changlelog.outputs.CHANGELOG }}
|
changlelog: ${{ steps.changlelog.outputs.CHANGELOG }}
|
||||||
steps:
|
steps:
|
||||||
@@ -29,42 +28,41 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo ::set-output name=CHANGELOG::$(cat CHANGELOG.md)
|
echo ::set-output name=CHANGELOG::$(cat CHANGELOG.md)
|
||||||
|
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
name: Build & Publish ${{ matrix.arch }}
|
# name: Build & Publish ${{ matrix.arch }}
|
||||||
needs:
|
# needs:
|
||||||
- metadata
|
# - metadata
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
|
# arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Check out repository
|
# - name: Check out repository
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v2.0.0
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build & Push to Dockerhub - ${{ matrix.arch }} / ${{ needs.metadata.outputs.version }}
|
# - name: Login to DockerHub
|
||||||
uses: home-assistant/builder@2022.03.1
|
# uses: docker/login-action@v2.0.0
|
||||||
with:
|
# with:
|
||||||
args: |
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
--${{ matrix.arch }} \
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
--target .
|
|
||||||
|
# - name: Build & Push to Dockerhub - ${{ matrix.arch }} / ${{ needs.metadata.outputs.version }}
|
||||||
|
# uses: home-assistant/builder@2022.03.1
|
||||||
|
# with:
|
||||||
|
# args: |
|
||||||
|
# --${{ matrix.arch }} \
|
||||||
|
# --target .
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- metadata
|
- metadata
|
||||||
- build
|
|
||||||
name: Publish Github Release
|
name: Publish Github Release
|
||||||
steps:
|
steps:
|
||||||
- name: Publish Release ${{ needs.metadata.outputs.version }}
|
- name: Publish Release ${{ needs.metadata.outputs.version }}
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.metadata.outputs.version }}
|
VERSION: ${{ needs.metadata.outputs.version }}
|
||||||
CHANGELOG: ${{ needs.metadata.outputs.changlelog }}
|
CHANGELOG: ${{ needs.metadata.outputs.changlelog }}
|
||||||
with:
|
with:
|
||||||
@@ -74,4 +72,4 @@ jobs:
|
|||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag_name: process.env.VERSION,
|
tag_name: process.env.VERSION,
|
||||||
body: process.env.CHANGELOG,
|
body: process.env.CHANGELOG,
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user