Skip to content

Commit

Permalink
Switch to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
sabeechen committed Nov 13, 2023
1 parent 361c816 commit 4b63a94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/prod_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ jobs:
path: dev
persist-credentials: false

- name: Login to DockerHub
uses: docker/login-action@v3.0.0
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Addon Image
uses: home-assistant/builder@master
with:
args: |
--all \
--target dev/hassio-google-drive-backup
--target dev/hassio-google-drive-backup \
--docker-hub ghcr.io
12 changes: 7 additions & 5 deletions .github/workflows/test_staging_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,20 @@ jobs:
run: |
python3 staging/update.py dev staging
- name: Login to DockerHub
uses: docker/login-action@v3.0.0
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Staging Addon image
uses: home-assistant/builder@master
with:
args: |
--all \
--target dev/hassio-google-drive-backup
--target dev/hassio-google-drive-backup \
--docker-hub ghcr.io
- name: Publish Staging Addon Version
run: |
Expand Down
4 changes: 2 additions & 2 deletions hassio-google-drive-backup/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Home Assistant Google Drive Backup",
"version": "0.111.1",
"version": "0.112.1",
"slug": "hassio_google_drive_backup",
"description": "Automatically manage backups between Home Assistant and Google Drive",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
Expand Down Expand Up @@ -108,5 +108,5 @@
"ports_description": {
"1627/tcp": "Direct access to the add-on without ingress. Must be enabled in the settings, see 'expose_extra_server'."
},
"image": "sabeechen/hassio-google-drive-backup-{arch}"
"image": "ghcr.io/sabeechen/hassio-google-drive-backup-{arch}"
}

0 comments on commit 4b63a94

Please sign in to comment.