diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9783783..30f0b26 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,6 +15,10 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v3 + + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)-g$(echo ${{ github.sha }} | cut -c1-5 ) - name: Login to DockerHub uses: docker/login-action@v2.0.0 @@ -22,10 +26,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: ${{ matrix.arch }} + - name: ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} uses: home-assistant/builder@2022.03.1 with: args: | + --version ${{ steps.get_version.outputs.VERSION }} \ --${{ matrix.arch }} \ --target . \ No newline at end of file