π¦ Deploy to netdaemon_base #18
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
#### Publish tags to docker hub | |
name: π¦ Deploy to netdaemon_base | |
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@v3 | |
- name: π§ Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- 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/Dockerfile8 . \ | |
--compress \ | |
--tag "netdaemon/netdaemon_base:8" \ | |
--tag "ghcr.io/net-daemon/netdaemon_base:8" |