diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25c97ce..9367582 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,10 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v2 + - name: Update emoncms/config.json (faking) + run: | + cat <<< $(jq '. += { "image": "inversechi/hassio-emoncms-{arch}"}' emoncms/config.json) > emoncms/config.json + cat <<< $(jq '.version = "v1.1.1"' emoncms/config.json) > emoncms/config.json - name: Test build uses: home-assistant/builder@master with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 39dfce4..9832f0f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,10 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v2 + - name: Update emoncms/config.json + run: | + cat <<< $(jq '. += { "image": "inversechi/hassio-emoncms-{arch}"}' emoncms/config.json) > emoncms/config.json + cat <<< $(jq '.version = "${{ github.event.release.tag_name }}"' emoncms/config.json) > emoncms/config.json - name: Login to DockerHub uses: docker/login-action@v1 with: diff --git a/emoncms/config.json b/emoncms/config.json index fb22fea..f3d71b3 100755 --- a/emoncms/config.json +++ b/emoncms/config.json @@ -1,6 +1,6 @@ { "name": "Emoncms", - "version": "0.4.1", + "version": "dev", "slug": "emoncms", "description": "Emoncms is a powerful open-source web-app for processing, logging and visualising energy, temperature and other environmental data.", "url": "https://github.com/inverse/hassio-addon-emoncms", @@ -31,6 +31,5 @@ "remote_mysql_username": "str?", "remote_mysql_password": "str?", "remote_mysql_port": "int?" - }, - "image": "inversechi/hassio-emoncms-{arch}" + } }