-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbd40f9
commit 9a70fbf
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |