-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (33 loc) · 1.01 KB
/
amazon-s3-backup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Publish Amazon S3 Backup"
on:
push:
branches: [ "main" ]
jobs:
publish:
name: Publish Amazon S3 Backup Image
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check Version
id: check
uses: ./.github/actions/check-ghcr
with:
token: ${{ secrets.GITHUB_TOKEN }}
image: wozz/ha-addons/amazon-s3-backup-aarch64
configpath: amazon-s3-backup/config.json
- name: Publish
if: ${{ steps.check.outputs.status == '404' }}
uses: home-assistant/builder@master
with:
args: |
--all \
--target amazon-s3-backup \
--docker-hub ghcr.io/wozz/ha-addons \
--image amazon-s3-backup-{arch}