Point the restore link at HA's new backup page and lock in credential… #177
This file contains hidden or 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
| name: push_to_staging | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - arch: amd64 | |
| runner: ubuntu-latest | |
| - arch: aarch64 | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Check out dev repo | |
| uses: actions/checkout@v7 | |
| with: | |
| path: dev | |
| persist-credentials: false | |
| - name: Check out staging repo | |
| uses: actions/checkout@v7 | |
| with: | |
| path: staging | |
| repository: sabeechen/hgdb-dev-staging | |
| persist-credentials: false | |
| - name: Apply staging version number | |
| run: python3 staging/update.py dev staging | |
| - name: Read addon config | |
| id: info | |
| env: | |
| ARCH: ${{ matrix.arch }} | |
| run: | | |
| CONFIG=dev/hassio-google-drive-backup/config.json | |
| IMAGE=$(jq -r .image "$CONFIG") | |
| { | |
| echo "version=$(jq -r .version "$CONFIG")" | |
| echo "image=${IMAGE//\{arch\}/$ARCH}" | |
| echo "name=$(jq -r .name "$CONFIG")" | |
| echo "description=$(jq -r .description "$CONFIG")" | |
| echo "url=$(jq -r .url "$CONFIG")" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Build and publish ${{ matrix.arch }} staging image | |
| uses: home-assistant/builder/actions/build-image@2026.06.0 | |
| with: | |
| arch: ${{ matrix.arch }} | |
| image: ${{ steps.info.outputs.image }} | |
| image-tags: | | |
| ${{ steps.info.outputs.version }} | |
| latest | |
| version: ${{ steps.info.outputs.version }} | |
| context: dev/hassio-google-drive-backup | |
| push: "true" | |
| cosign: "false" | |
| container-registry-password: ${{ secrets.GITHUB_TOKEN }} | |
| build-args: | | |
| SYNC_EXTRAS=--extra debug | |
| labels: | | |
| io.hass.type=addon | |
| io.hass.name=${{ steps.info.outputs.name }} | |
| io.hass.description=${{ steps.info.outputs.description }} | |
| io.hass.url=${{ steps.info.outputs.url }} | |
| publish_staging_config: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out dev repo | |
| uses: actions/checkout@v7 | |
| with: | |
| path: dev | |
| persist-credentials: false | |
| - name: Check out staging repo | |
| uses: actions/checkout@v7 | |
| with: | |
| path: staging | |
| repository: sabeechen/hgdb-dev-staging | |
| persist-credentials: true | |
| token: ${{ secrets.STAGING_REPO_TOKEN }} | |
| - name: Apply staging version number | |
| run: python3 staging/update.py dev staging | |
| - name: Publish staging addon version | |
| run: | | |
| cd staging | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "Updating staging addon config" | |
| git push |