Skip to content

Commit 1d70bbc

Browse files
committed
revert back from resuable workflows
1 parent ba93b6b commit 1d70bbc

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/push_docker_dev.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
steps:
1414
- name: 📤 Checkout the repository
1515
uses: actions/checkout@main
16-
- name: 📆 Set version number
17-
uses: net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
18-
with:
19-
version: dev
16+
- name: 📆 Set version in code and docker files
17+
run: |
18+
echo setting source version: dev
19+
sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
20+
sed -i '/ io.hass.version=/c\ io.hass.version="dev"' ${{github.workspace}}/Dockerfile.AddOn
2021
- name: 📎 Set up QEMU
2122
uses: docker/setup-qemu-action@v1
2223
- name: 🔧 Set up Docker Buildx
@@ -58,7 +59,9 @@ jobs:
5859
uses: actions/checkout@main
5960
- name: 📆 Set version number
6061
run: |
61-
sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
62+
echo setting source version: dev
63+
sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
64+
sed -i '/ io.hass.version=/c\ io.hass.version="dev"' ${{github.workspace}}/Dockerfile.AddOn
6265
- name: 📎 Set up QEMU
6366
uses: docker/setup-qemu-action@v1
6467
- name: 🔧 Set up Docker Buildx

.github/workflows/push_docker_manual.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
- name: 📤 Checkout the repository
1818
uses: actions/checkout@main
1919
- name: 📆 Set version number
20-
uses: net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
21-
with:
22-
version: feature-${{ github.event.inputs.tag }}
20+
run: |
21+
echo setting source version: feature-${{ github.event.inputs.tag }}
22+
sed -i '/ private const string Version = /c\ private const string Version = "feature-${{ github.event.inputs.tag }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
23+
sed -i '/ io.hass.version=/c\ io.hass.version="feature-${{ github.event.inputs.tag }}"' ${{github.workspace}}/Dockerfile.AddOn
2324
- name: 📎 Set up QEMU
2425
uses: docker/setup-qemu-action@v1
2526
- name: 🔧 Set up Docker Buildx
@@ -58,8 +59,9 @@ jobs:
5859
uses: actions/checkout@main
5960
- name: 📆 Set version number
6061
run: |
61-
sed -i '/ private const string Version = /c\ private const string Version = "dev";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
62-
sed -i '/ io.hass.version=/c\ io.hass.version="dev" \\' ${{github.workspace}}/Dockerfile.AddOn
62+
echo setting source version: feature-${{ github.event.inputs.tag }}
63+
sed -i '/ private const string Version = /c\ private const string Version = "feature-${{ github.event.inputs.tag }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
64+
sed -i '/ io.hass.version=/c\ io.hass.version="feature-${{ github.event.inputs.tag }}"' ${{github.workspace}}/Dockerfile.AddOn
6365
- name: 📎 Set up QEMU
6466
uses: docker/setup-qemu-action@v1
6567
- name: 🔧 Set up Docker Buildx

.github/workflows/tags_docker.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121
echo Current version: $latest
2222
echo "::set-output name=version::$latest"
2323
- name: 📆 Set version number
24-
uses: net-daemon/netdaemon/.github/workflows/common/set_netdaemon_version.yml
25-
with:
26-
version: ${{ steps.version.outputs.version }}
24+
run: |
25+
echo setting source version: ${{ steps.version.outputs.version }}
26+
sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
27+
sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}"' ${{github.workspace}}/Dockerfile.AddOn
2728
- name: 📎 Set up QEMU
2829
uses: docker/setup-qemu-action@v1
2930
- name: 🔧 Set up Docker Buildx
@@ -77,8 +78,9 @@ jobs:
7778
7879
- name: 📆 Set version number
7980
run: |
80-
sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
81-
sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}" \\' ${{github.workspace}}/Dockerfile.AddOn
81+
echo setting source version: ${{ steps.version.outputs.version }}
82+
sed -i '/ private const string Version = /c\ private const string Version = "${{ steps.version.outputs.version }}";' ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
83+
sed -i '/ io.hass.version=/c\ io.hass.version="${{ steps.version.outputs.version }}"' ${{github.workspace}}/Dockerfile.AddOn
8284
8385
- name: 📎 Set up QEMU
8486
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)