Skip to content

Commit

Permalink
branch master to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 1, 2023
1 parent 1d3bc45 commit 31d86de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
- name: Get Image Tag
id: get_tag
run: |
export TARGET_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.NAME }}" = "master" ]; then echo "latest"; else echo "${{ steps.get_branch.outputs.NAME }}"; fi)
export TARGET_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.NAME }}" = "latest" ]; then echo "latest"; else echo "${{ steps.get_branch.outputs.NAME }}"; fi)
echo $TARGET_IMAGE_TAG
echo ::set-output name=NAME::${TARGET_IMAGE_TAG}
# generate the alternative image tag
- name: Get Alternate Tag
id: get_alt_tag
run: |
export ALT_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.NAME }}" = "master" ]; then echo "ubuntu"; else echo "${{ steps.get_branch.outputs.NAME }}-ubuntu"; fi)
export ALT_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.NAME }}" = "latest" ]; then echo "ubuntu"; else echo "${{ steps.get_branch.outputs.NAME }}-ubuntu"; fi)
echo $ALT_IMAGE_TAG
echo ::set-output name=NAME::${ALT_IMAGE_TAG}
Expand All @@ -50,7 +50,7 @@ jobs:
# login to github container registry
- name: Login to Packages Container registry
uses: docker/login-action@v1
uses: docker/login-action@v1
if: github.repository == 'homebridge/docker-homebridge'
with:
registry: ghcr.io
Expand All @@ -73,4 +73,4 @@ jobs:
- name: Build Image For Github Container Registry
run: |
docker buildx build --push -f Dockerfile --platform linux/amd64,linux/arm/v7,linux/arm64 -t ghcr.io/homebridge/homebridge:${{ steps.get_alt_tag.outputs.NAME }} .
docker buildx build --push -f Dockerfile --platform linux/amd64,linux/arm/v7,linux/arm64 -t ghcr.io/homebridge/homebridge:${{ steps.get_tag.outputs.NAME }} .
docker buildx build --push -f Dockerfile --platform linux/amd64,linux/arm/v7,linux/arm64 -t ghcr.io/homebridge/homebridge:${{ steps.get_tag.outputs.NAME }} .
4 changes: 2 additions & 2 deletions homebridge.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Containers>
<TemplateURL>https://raw.githubusercontent.com/homebridge/docker-homebridge/master/homebridge.xml</TemplateURL>
<TemplateURL>https://raw.githubusercontent.com/homebridge/docker-homebridge/latest/homebridge.xml</TemplateURL>
<Beta>False</Beta>
<Category>HomeAutomation Tools</Category>
<Name>homebridge</Name>
Expand Down Expand Up @@ -34,7 +34,7 @@
</Data>
<Shell>bash</Shell>
<WebUI>http://[IP]:[PORT:8581]/</WebUI>
<Icon>https://raw.githubusercontent.com/homebridge/branding/master/logos/homebridge-color-round-stylized.png</Icon>
<Icon>https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png</Icon>
<DonateText>If you find this project useful please STAR it on GitHub.</DonateText>
<DonateLink>https://github.com/homebridge/docker-homebridge</DonateLink>
<DonateImg>https://user-images.githubusercontent.com/3979615/96548396-85731300-12f9-11eb-9322-951083d43db1.png</DonateImg>
Expand Down

0 comments on commit 31d86de

Please sign in to comment.