Skip to content

πŸ“¦ Deploy to netdaemon_addonbase #13

πŸ“¦ Deploy to netdaemon_addonbase

πŸ“¦ Deploy to netdaemon_addonbase #13

#### Publish tags to docker hub
name: πŸ“¦ Deploy to netdaemon_addonbase
on:
workflow_dispatch:
jobs:
deploy:
name: πŸ“¦ Deploy to netdaemon_base
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/Dockerfile8 . \
--compress \
--tag "netdaemon/netdaemon_addonbase:8" \
--tag "ghcr.io/net-daemon/netdaemon_addonbase:8"