Skip to content

Commit

Permalink
.NET images
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Nov 14, 2022
1 parent cbd40f9 commit 9a70fbf
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.addonbase7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#### Publish tags to docker hub
name: πŸ“¦ Deploy to netdaemon_addonbase_7
on:
workflow_dispatch:

jobs:
deploy:
name: πŸ“¦ Deploy to netdaemon_base_7
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: πŸ“€ Checkout the repository
uses: actions/checkout@main
- name: πŸ“Ž Set up QEMU
uses: docker/setup-qemu-action@v1
- name: πŸ”§ Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: 🧰 Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: πŸ”“ Login to Docker hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: πŸ”“ Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ› οΈ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
--output "type=image,push=true" \
--no-cache \
--file ./addon_base/Dockerfile7 . \
--compress \
--tag "netdaemon/netdaemon_addonbase7" \
--tag "ghcr.io/net-daemon/netdaemon_addonbase7"
42 changes: 42 additions & 0 deletions .github/workflows/build.base7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#### Publish tags to docker hub
name: πŸ“¦ Deploy to netdaemon_base_7.0
on:
workflow_dispatch:

jobs:
deploy:
name: πŸ“¦ Deploy to netdaemon_base_7.0
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: πŸ“€ Checkout the repository
uses: actions/checkout@main
- name: πŸ“Ž Set up QEMU
uses: docker/setup-qemu-action@v1
- name: πŸ”§ Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: 🧰 Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: πŸ”“ Login to Docker hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: πŸ”“ Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ› οΈ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
--output "type=image,push=true" \
--no-cache \
--file ./base/Dockerfile7 . \
--compress \
--tag "netdaemon/netdaemon_base7" \
--tag "ghcr.io/net-daemon/netdaemon_base7"
12 changes: 12 additions & 0 deletions addon_base/Dockerfile7
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ghcr.io/net-daemon/netdaemon_base7

RUN mkdir -p /usr/src/bashio \
&& curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.14.3.tar.gz" \
| tar -xzf - --strip 1 -C /usr/src/bashio \
&& mv /usr/src/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio

LABEL \
io.hass.version="VERSION" \
io.hass.type="addon" \
io.hass.arch="armhf|aarch64|amd64"

0 comments on commit 9a70fbf

Please sign in to comment.