mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
Push images on release (#11)
This commit is contained in:
@@ -10,7 +10,7 @@ name: Create release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
name: create_release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Teslamate
|
||||
|
||||
@@ -92,8 +92,8 @@ jobs:
|
||||
--label io.hass.url="https://github.com/matt-FFFFFF/hassio-addon-repository/blob/main/teslamate/README.md" \
|
||||
-t $DOCKER_USERNAME/teslamate-${{ matrix.arch }}:$ADDON_VERSION \
|
||||
./
|
||||
if: github.ref != 'refs/heads/main'
|
||||
- name: Buildx build --push (if main)
|
||||
if: ${{ github.ref != 'refs/heads/main' }}
|
||||
- name: Buildx build --push (if main or release)
|
||||
run: |
|
||||
DOCKER_CLI_EXPERIMENTAL=enabled sudo docker buildx build \
|
||||
--pull \
|
||||
@@ -109,4 +109,4 @@ jobs:
|
||||
--label io.hass.url="https://github.com/matt-FFFFFF/hassio-addon-repository/blob/main/teslamate/README.md" \
|
||||
-t $DOCKER_USERNAME/teslamate-${{ matrix.arch }}:$ADDON_VERSION \
|
||||
./
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
|
||||
|
||||
Reference in New Issue
Block a user