Skip to content

Commit

Permalink
Merge 7eff753 into c6256f7
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed May 2, 2021
2 parents c6256f7 + 7eff753 commit dd75f2a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/push_docker_manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#### Publish tags to docker hub
name: 📦 Deploy to Docker with tag
on:
workflow_dispatch:
inputs:
tag:
description: 'Enter docker image tag'
required: true
default: 'branch'

jobs:
deploy:
name: 📦 Deploy to Docker with tag
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
- name: 📆 Set version number
run: |
sed -i '/ private const string Version = /c\ private const string Version = "dev build";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
sed -i '/ io.hass.version=/c\ io.hass.version="dev" \\' ${{github.workspace}}/Dockerfile
-
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
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}

- name: 🛠️ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
--output "type=image,push=true" \
--no-cache \
--file ./Dockerfile . \
--compress \
--tag "netdaemon/netdaemon:feature-${{ github.event.inputs.tag }}"

0 comments on commit dd75f2a

Please sign in to comment.